vulkan: chain up in finalize
authorMatthew Waters <matthew@centricular.com>
Wed, 10 Feb 2016 08:34:55 +0000 (19:34 +1100)
committerMatthew Waters <matthew@centricular.com>
Tue, 16 Feb 2016 14:13:43 +0000 (01:13 +1100)
They were missing in some cases

ext/vulkan/vkdevice.c
ext/vulkan/vkinstance.c
ext/vulkan/vkswapper.c

index 197b17c..0e2d2f6 100644 (file)
@@ -41,6 +41,7 @@ static const char *device_validation_layers[] = {
 #define GST_CAT_DEFAULT gst_vulkan_device_debug
 GST_DEBUG_CATEGORY (GST_CAT_DEFAULT);
 
+#define gst_vulkan_device_parent_class parent_class
 G_DEFINE_TYPE_WITH_CODE (GstVulkanDevice, gst_vulkan_device, GST_TYPE_OBJECT,
     GST_DEBUG_CATEGORY_INIT (GST_CAT_DEFAULT, "vulkandevice", 0,
         "Vulkan Device"));
@@ -102,6 +103,8 @@ gst_vulkan_device_finalize (GObject * object)
   if (device->instance)
     gst_object_unref (device->instance);
   device->instance = VK_NULL_HANDLE;
+
+  G_OBJECT_CLASS (parent_class)->finalize (object);
 }
 
 static const gchar *
index d68e985..64ab816 100644 (file)
@@ -125,6 +125,8 @@ gst_vulkan_instance_finalize (GObject * object)
   if (instance->instance)
     vkDestroyInstance (instance->instance, NULL);
   instance->instance = NULL;
+
+  G_OBJECT_CLASS (parent_class)->finalize (object);
 }
 
 static VkBool32
index 7681393..a8e55e7 100644 (file)
@@ -305,6 +305,8 @@ gst_vulkan_swapper_finalize (GObject * object)
   gst_caps_replace (&swapper->caps, NULL);
 
   g_mutex_clear (&swapper->priv->render_lock);
+
+  G_OBJECT_CLASS (parent_class)->finalize (object);
 }
 
 static void