qtwindow: unref caps in destructor

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

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