Commit c2f17d48 authored by Sergey Borovkov's avatar Sergey Borovkov Committed by Matthew Waters

qml: Fix leak of the OpenGL contexts

[Matthew Waters]: add NULL checks before unreffing
parent 6c6a9cf5
......@@ -172,7 +172,10 @@ QtGLVideoItem::QtGLVideoItem()
g_mutex_clear (&this->priv->lock);
if (this->priv->context)
if (this->priv->other_context)
g_free (this->priv);
this->priv = NULL;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment