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:
@ -580,7 +580,7 @@ gdk_event_copy (const GdkEvent *event)
|
|||||||
case GDK_SELECTION_REQUEST:
|
case GDK_SELECTION_REQUEST:
|
||||||
new_event->selection.requestor = event->selection.requestor;
|
new_event->selection.requestor = event->selection.requestor;
|
||||||
if (new_event->selection.requestor)
|
if (new_event->selection.requestor)
|
||||||
g_object_unref (new_event->selection.requestor);
|
g_object_ref (new_event->selection.requestor);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user