drop: Don't leak the surface and formats

This commit is contained in:
Matthias Clasen 2020-08-06 20:00:05 -04:00
parent 1fa9261fe3
commit 71373ff6fb

View File

@ -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);
}