forked from AuroraMiddleware/gtk
wayland: Fix memleak
7f8a8f221d
forgot to free the data offer
passed to it.
This commit is contained in:
parent
3c05a6662b
commit
d056be4ea2
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user