summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-08-06 20:00:49 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-08-06 20:02:33 -0400
commit12450cfcef4b4300e0114ad5d0322a8ea6b0e988 (patch)
treed9de96d1ef2b86dab2086008f73198f99ae286c2
parent71373ff6fbcd2ae2159b8fcd4e15f146d752e334 (diff)
downloadgtk+-12450cfcef4b4300e0114ad5d0322a8ea6b0e988.tar.gz
wayland: Don't leak content formats
We were not unreffing the formats here.
-rw-r--r--gdk/wayland/gdkdevice-wayland.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index 6ca368d9aa..0d773cf272 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -1187,6 +1187,8 @@ data_device_enter (void *data,
gdk_wayland_drop_set_source_actions (seat->drop, seat->pending_source_actions);
gdk_wayland_drop_set_action (seat->drop, seat->pending_action);
+ gdk_content_formats_unref (formats);
+
gdk_wayland_seat_discard_pending_offer (seat);
gdk_surface_get_origin (gdk_drop_get_surface (seat->drop), &origin_x, &origin_y);