mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
qml: Fix leak of the OpenGL contexts
[Matthew Waters]: add NULL checks before unreffing https://bugzilla.gnome.org/show_bug.cgi?id=762999
This commit is contained in:
parent
b077cd5510
commit
7981c1cb86
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue