Commit 88bf4a7a authored by Carlos Garnacho's avatar Carlos Garnacho
Browse files

x11: Fix possible leak of GdkEvents

If the filter didn't return GDK_EVENT_TRANSLATE, the event struct would be
left unused and leaked.
parent d9ea7cda
......@@ -1144,10 +1144,9 @@ xdnd_send_xevent (GdkX11DragContext *context_x11,
temp_event->any.window = g_object_ref (window);
if ((*xdnd_filters[i].func) (event_send, temp_event, NULL) == GDK_FILTER_TRANSLATE)
gdk_event_put (temp_event);
gdk_event_free (temp_event);
gdk_event_put (temp_event);
gdk_event_free (temp_event);
return TRUE;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment