ref, don't unref, requestor member when copying GdkEvents

This seems like a typo, we should obviously ref the member when
copying. Apparently nobody copied GDK_SELECTION_* events...
This commit is contained in:
Alexander Larsson 2011-11-17 11:59:27 +01:00
parent 0308352417
commit 6690e6dc58

View File

@ -580,7 +580,7 @@ gdk_event_copy (const GdkEvent *event)
case GDK_SELECTION_REQUEST:
new_event->selection.requestor = event->selection.requestor;
if (new_event->selection.requestor)
g_object_unref (new_event->selection.requestor);
g_object_ref (new_event->selection.requestor);
break;
default: