mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +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
|
#define GST_CAT_DEFAULT gst_vulkan_device_debug
|
||||||
GST_DEBUG_CATEGORY (GST_CAT_DEFAULT);
|
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,
|
G_DEFINE_TYPE_WITH_CODE (GstVulkanDevice, gst_vulkan_device, GST_TYPE_OBJECT,
|
||||||
GST_DEBUG_CATEGORY_INIT (GST_CAT_DEFAULT, "vulkandevice", 0,
|
GST_DEBUG_CATEGORY_INIT (GST_CAT_DEFAULT, "vulkandevice", 0,
|
||||||
"Vulkan Device"));
|
"Vulkan Device"));
|
||||||
|
@ -102,6 +103,8 @@ gst_vulkan_device_finalize (GObject * object)
|
||||||
if (device->instance)
|
if (device->instance)
|
||||||
gst_object_unref (device->instance);
|
gst_object_unref (device->instance);
|
||||||
device->instance = VK_NULL_HANDLE;
|
device->instance = VK_NULL_HANDLE;
|
||||||
|
|
||||||
|
G_OBJECT_CLASS (parent_class)->finalize (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const gchar *
|
static const gchar *
|
||||||
|
|
|
@ -125,6 +125,8 @@ gst_vulkan_instance_finalize (GObject * object)
|
||||||
if (instance->instance)
|
if (instance->instance)
|
||||||
vkDestroyInstance (instance->instance, NULL);
|
vkDestroyInstance (instance->instance, NULL);
|
||||||
instance->instance = NULL;
|
instance->instance = NULL;
|
||||||
|
|
||||||
|
G_OBJECT_CLASS (parent_class)->finalize (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
static VkBool32
|
static VkBool32
|
||||||
|
|
|
@ -305,6 +305,8 @@ gst_vulkan_swapper_finalize (GObject * object)
|
||||||
gst_caps_replace (&swapper->caps, NULL);
|
gst_caps_replace (&swapper->caps, NULL);
|
||||||
|
|
||||||
g_mutex_clear (&swapper->priv->render_lock);
|
g_mutex_clear (&swapper->priv->render_lock);
|
||||||
|
|
||||||
|
G_OBJECT_CLASS (parent_class)->finalize (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue