diff --git a/subprojects/gst-plugins-good/ext/qt/qtwindow.cc b/subprojects/gst-plugins-good/ext/qt/qtwindow.cc index daec3222b7..2872cb5c2f 100644 --- a/subprojects/gst-plugins-good/ext/qt/qtwindow.cc +++ b/subprojects/gst-plugins-good/ext/qt/qtwindow.cc @@ -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; }