vulkan: chain up in finalize

They were missing in some cases
This commit is contained in:
Matthew Waters 2016-02-10 19:34:55 +11:00
parent 22172df413
commit 7118f1f7e2
3 changed files with 7 additions and 0 deletions

View 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 *

View 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

View 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