qtwindow: unref caps in destructor

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4393>
This commit is contained in:
Matthias Fuchs 2023-04-06 08:55:46 +02:00 committed by GStreamer Marge Bot
parent 4e4cb3bcf5
commit 884dbb4ace

View file

@ -123,6 +123,8 @@ QtGLWindow::~QtGLWindow()
gst_object_unref(this->priv->display);
if (this->priv->context)
gst_object_unref(this->priv->context);
if (this->priv->caps)
gst_caps_unref(this->priv->caps);
g_free (this->priv);
this->priv = NULL;
}