wayland: Fix memleak

7f8a8f221d forgot to free the data offer
passed to it.
This commit is contained in:
Benjamin Otte 2018-05-06 17:06:57 +02:00
parent 3c05a6662b
commit d056be4ea2

View File

@ -85,7 +85,8 @@ gdk_wayland_drag_context_finalize (GObject *object)
}
if (wayland_context->data_source)
wl_data_source_destroy (wayland_context->data_source);
g_clear_pointer (&wayland_context->data_source, (GDestroyNotify) wl_data_source_destroy);
g_clear_pointer (&wayland_context->offer, (GDestroyNotify) wl_data_offer_destroy);
dnd_surface = wayland_context->dnd_surface;