mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-08 21:28:45 +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
de41d74e6f
commit
afae1c53d2
1 changed files with 2 additions and 0 deletions
|
@ -136,6 +136,8 @@ QtGLVideoItem::~QtGLVideoItem()
|
||||||
gst_object_unref(this->priv->context);
|
gst_object_unref(this->priv->context);
|
||||||
if (this->priv->other_context)
|
if (this->priv->other_context)
|
||||||
gst_object_unref(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);
|
g_free (this->priv);
|
||||||
this->priv = NULL;
|
this->priv = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue