diff options
author | Benjamin Otte <otte@redhat.com> | 2018-05-06 17:06:57 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2018-05-07 16:28:50 +0200 |
commit | d056be4ea238e6f4371230b1a892ed0100770848 (patch) | |
tree | bf19edce08c263a7893810537cdad94f4a9ff0ce | |
parent | 3c05a6662b37ee140cb79b4afa3f52bdde6ad5e6 (diff) | |
download | gtk+-d056be4ea238e6f4371230b1a892ed0100770848.tar.gz |
wayland: Fix memleak
7f8a8f221d60bc5da23602e5e024eb91f8b0f758 forgot to free the data offer
passed to it.
-rw-r--r-- | gdk/wayland/gdkdnd-wayland.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdk/wayland/gdkdnd-wayland.c b/gdk/wayland/gdkdnd-wayland.c index 81ed3505a8..9138e5eb98 100644 --- a/gdk/wayland/gdkdnd-wayland.c +++ b/gdk/wayland/gdkdnd-wayland.c @@ -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; |