diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-08-06 20:00:05 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-08-06 20:02:33 -0400 |
commit | 71373ff6fbcd2ae2159b8fcd4e15f146d752e334 (patch) | |
tree | c263e9077aee4dc6f78e264633789bcf9d588909 | |
parent | 1fa9261fe3ec1249c470f2140c88bcf2bd214b51 (diff) | |
download | gtk+-71373ff6fbcd2ae2159b8fcd4e15f146d752e334.tar.gz |
drop: Don't leak the surface and formats
-rw-r--r-- | gdk/gdkdrop.c | 2 |
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); } |