[gtk/dnd-leaks: 3/4] wayland: Don't leak content formats
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/dnd-leaks: 3/4] wayland: Don't leak content formats
- Date: Fri, 7 Aug 2020 00:03:17 +0000 (UTC)
commit 12450cfcef4b4300e0114ad5d0322a8ea6b0e988
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Aug 6 20:00:49 2020 -0400
wayland: Don't leak content formats
We were not unreffing the formats here.
gdk/wayland/gdkdevice-wayland.c | 2 ++
1 file changed, 2 insertions(+)
---
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]