From 57bd62f85fae973c14354a72597bbdc0aa0af6be Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Wed, 10 Feb 2016 19:50:27 +1100 Subject: [PATCH] vkdisplay: unref the instance fixes memory leak --- ext/vulkan/vkdisplay.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/vulkan/vkdisplay.c b/ext/vulkan/vkdisplay.c index af36a40d09..09b5055747 100644 --- a/ext/vulkan/vkdisplay.c +++ b/ext/vulkan/vkdisplay.c @@ -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); }