vkdisplay: unref the instance

fixes memory leak
This commit is contained in:
Matthew Waters 2016-02-10 19:50:27 +11:00
parent 7118f1f7e2
commit 57bd62f85f

View file

@ -159,6 +159,10 @@ gst_vulkan_display_finalize (GObject * object)
display->priv->event_thread = NULL;
g_mutex_unlock (&display->priv->thread_lock);
if (display->instance) {
gst_object_unref (display->instance);
}
G_OBJECT_CLASS (gst_vulkan_display_parent_class)->finalize (object);
}