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:
Matthew Waters 2016-12-07 22:55:46 +11:00
parent de41d74e6f
commit afae1c53d2

View file

@ -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;
}