vkdisplay: unref the instance
authorMatthew Waters <matthew@centricular.com>
Wed, 10 Feb 2016 08:50:27 +0000 (19:50 +1100)
committerMatthew Waters <matthew@centricular.com>
Tue, 16 Feb 2016 14:13:43 +0000 (01:13 +1100)
fixes memory leak

ext/vulkan/vkdisplay.c

index af36a40..09b5055 100644 (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);
 }