From 01b6c38ec962a04b208601aa48cc6482fc5eb36b Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Wed, 7 Dec 2016 22:55:46 +1100 Subject: [PATCH] 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 --- ext/qt/qtitem.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/qt/qtitem.cc b/ext/qt/qtitem.cc index f088c76fb1..8027c741ae 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; }