qtitem: fix leak of caps

This commit is contained in:
Matthew Waters 2020-02-03 15:59:34 +11:00 committed by GStreamer Merge Bot
parent 4f4997a935
commit 5e9f80c79a

View file

@ -146,6 +146,8 @@ QtGLVideoItem::~QtGLVideoItem()
gst_object_unref(this->priv->other_context);
if (this->priv->display)
gst_object_unref(this->priv->display);
gst_caps_replace (&this->priv->caps, NULL);
g_free (this->priv);
this->priv = NULL;
}