gtkwaylandsink: Fix display/wl_window/pool leaks

These were leaked in the GTK implementation of the sink.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3801>
This commit is contained in:
Nicolas Dufresne 2023-02-16 14:31:10 -05:00 committed by GStreamer Marge Bot
parent 965117b400
commit 0961606942

View file

@ -200,6 +200,10 @@ gst_gtk_wayland_sink_finalize (GObject * object)
GstGtkWaylandSinkPrivate *priv = GstGtkWaylandSinkPrivate *priv =
gst_gtk_wayland_sink_get_instance_private (self); gst_gtk_wayland_sink_get_instance_private (self);
g_clear_object (&priv->display);
g_clear_object (&priv->wl_window);
g_clear_object (&priv->pool);
g_clear_object (&priv->gtk_widget); g_clear_object (&priv->gtk_widget);
gst_clear_caps (&priv->caps); gst_clear_caps (&priv->caps);