Commit 42f096c8 authored by Carlos Garnacho's avatar Carlos Garnacho

wayland: Plug leak

We leak refs on the dest window if it gets set multiple times, expected to
happen as the DnD operation moves across the window.
parent 0edc9dee
......@@ -418,6 +418,9 @@ _gdk_wayland_drag_context_set_dest_window (GdkDragContext *context,
GdkWindow *dest_window,
uint32_t serial)
{
if (context->dest_window)
g_object_unref (context->dest_window);
context->dest_window = dest_window ? g_object_ref (dest_window) : NULL;
GDK_WAYLAND_DRAG_CONTEXT (context)->serial = serial;
gdk_wayland_drop_context_update_targets (context);
......
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