mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
vkmemory: unref queue in barriers
Queue might be assigned for queue transfers, so we need to unref it if the memory has been assigned to a specific queue. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5079>
This commit is contained in:
parent
5acd6c23b8
commit
8809ce5648
2 changed files with 4 additions and 0 deletions
|
@ -271,6 +271,8 @@ _vk_buffer_mem_free (GstAllocator * allocator, GstMemory * memory)
|
|||
if (mem->buffer && !mem->wrapped)
|
||||
vkDestroyBuffer (mem->device->device, mem->buffer, NULL);
|
||||
|
||||
gst_clear_object (&mem->barrier.parent.queue);
|
||||
|
||||
if (mem->vk_mem)
|
||||
gst_memory_unref ((GstMemory *) mem->vk_mem);
|
||||
|
||||
|
|
|
@ -366,6 +366,8 @@ _vk_image_mem_free (GstAllocator * allocator, GstMemory * memory)
|
|||
if (mem->image && !mem->wrapped)
|
||||
vkDestroyImage (mem->device->device, mem->image, NULL);
|
||||
|
||||
gst_clear_object (&mem->barrier.parent.queue);
|
||||
|
||||
if (mem->vk_mem)
|
||||
gst_memory_unref ((GstMemory *) mem->vk_mem);
|
||||
|
||||
|
|
Loading…
Reference in a new issue