From: Matthew Waters Date: Wed, 7 Dec 2016 11:55:46 +0000 (+1100) Subject: qml/item: also unref the display on destruction X-Git-Tag: 1.16.2~680^2~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=01b6c38ec962a04b208601aa48cc6482fc5eb36b;p=platform%2Fupstream%2Fgst-plugins-good.git 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 --- diff --git a/ext/qt/qtitem.cc b/ext/qt/qtitem.cc index f088c76..8027c74 100644 --- a/ext/qt/qtitem.cc +++ b/ext/qt/qtitem.cc @@ -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; }