mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +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
6c6a9cf509
commit
c2f17d4834
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