mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 11:40:38 +00:00
qml/item: also unref the display on destruction
Leaking objects (and a thread!) is never a good idea. https://bugzilla.gnome.org/show_bug.cgi?id=775746
This commit is contained in:
parent
6ce990d24e
commit
01b6c38ec9
1 changed files with 2 additions and 0 deletions
|
@ -136,6 +136,8 @@ QtGLVideoItem::~QtGLVideoItem()
|
|||
gst_object_unref(this->priv->context);
|
||||
if (this->priv->other_context)
|
||||
gst_object_unref(this->priv->other_context);
|
||||
if (this->priv->display)
|
||||
gst_object_unref(this->priv->display);
|
||||
g_free (this->priv);
|
||||
this->priv = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue