[gtk/dnd-leaks: 2/4] drop: Don't leak the surface and formats
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/dnd-leaks: 2/4] drop: Don't leak the surface and formats
- Date: Fri, 7 Aug 2020 00:03:17 +0000 (UTC)
commit 71373ff6fbcd2ae2159b8fcd4e15f146d752e334
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Aug 6 20:00:05 2020 -0400
drop: Don't leak the surface and formats
gdk/gdkdrop.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gdk/gdkdrop.c b/gdk/gdkdrop.c
index 8b2a8b33af..487069d4f7 100644
--- a/gdk/gdkdrop.c
+++ b/gdk/gdkdrop.c
@@ -287,6 +287,8 @@ gdk_drop_finalize (GObject *object)
g_clear_object (&priv->device);
g_clear_object (&priv->drag);
+ g_clear_object (&priv->surface);
+ g_clear_pointer (&priv->formats, gdk_content_formats_unref);
G_OBJECT_CLASS (gdk_drop_parent_class)->finalize (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]