summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/qt/qtitem.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/qt/qtitem.cc b/ext/qt/qtitem.cc
index ab64d9e97..006cfaf4c 100644
--- a/ext/qt/qtitem.cc
+++ b/ext/qt/qtitem.cc
@@ -129,7 +129,10 @@ QtGLVideoItem::QtGLVideoItem()
QtGLVideoItem::~QtGLVideoItem()
{
g_mutex_clear (&this->priv->lock);
-
+ if (this->priv->context)
+ gst_object_unref(this->priv->context);
+ if (this->priv->other_context)
+ gst_object_unref(this->priv->other_context);
g_free (this->priv);
this->priv = NULL;
}