diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-08-06 20:00:49 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-08-06 20:02:33 -0400 |
commit | 12450cfcef4b4300e0114ad5d0322a8ea6b0e988 (patch) | |
tree | d9de96d1ef2b86dab2086008f73198f99ae286c2 | |
parent | 71373ff6fbcd2ae2159b8fcd4e15f146d752e334 (diff) | |
download | gtk+-12450cfcef4b4300e0114ad5d0322a8ea6b0e988.tar.gz |
wayland: Don't leak content formats
We were not unreffing the formats here.
-rw-r--r-- | gdk/wayland/gdkdevice-wayland.c | 2 |
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); |