From 71373ff6fbcd2ae2159b8fcd4e15f146d752e334 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 6 Aug 2020 20:00:05 -0400 Subject: [PATCH] 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); }