summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-08-06 20:00:05 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-08-06 20:02:33 -0400
commit71373ff6fbcd2ae2159b8fcd4e15f146d752e334 (patch)
treec263e9077aee4dc6f78e264633789bcf9d588909
parent1fa9261fe3ec1249c470f2140c88bcf2bd214b51 (diff)
downloadgtk+-71373ff6fbcd2ae2159b8fcd4e15f146d752e334.tar.gz
drop: Don't leak the surface and formats
-rw-r--r--gdk/gdkdrop.c2
1 files changed, 2 insertions, 0 deletions
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);
}