diff --git a/ext/qt/qtitem.cc b/ext/qt/qtitem.cc index 57b7bc9738..e1f91e76fc 100644 --- a/ext/qt/qtitem.cc +++ b/ext/qt/qtitem.cc @@ -172,7 +172,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; }