projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c6a9cf
)
qml: Fix leak of the OpenGL contexts
author
Sergey Borovkov
<sergey.borovkov@wireload.net>
Tue, 1 Mar 2016 15:22:37 +0000
(18:22 +0300)
committer
Matthew Waters
<matthew@centricular.com>
Thu, 3 Mar 2016 02:13:26 +0000
(13:13 +1100)
[Matthew Waters]: add NULL checks before unreffing
https://bugzilla.gnome.org/show_bug.cgi?id=762999
ext/qt/qtitem.cc
patch
|
blob
|
history
diff --git
a/ext/qt/qtitem.cc
b/ext/qt/qtitem.cc
index
57b7bc9
..
e1f91e7
100644
(file)
--- 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;
}