mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
vulkan: chain up in finalize
They were missing in some cases
This commit is contained in:
parent
22172df413
commit
7118f1f7e2
3 changed files with 7 additions and 0 deletions
|
@ -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 *
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue