mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
vulkan: Fix GstMemory leaks
Allocated GstMemory should be freed with g_free()
This commit is contained in:
parent
f3587c61ba
commit
68057cee98
2 changed files with 4 additions and 0 deletions
|
@ -332,6 +332,8 @@ _vk_buffer_mem_free (GstAllocator * allocator, GstMemory * memory)
|
|||
mem->notify (mem->user_data);
|
||||
|
||||
gst_object_unref (mem->device);
|
||||
|
||||
g_free (mem);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -247,6 +247,8 @@ _vk_mem_free (GstAllocator * allocator, GstMemory * memory)
|
|||
vkFreeMemory (mem->device->device, mem->mem_ptr, NULL);
|
||||
|
||||
gst_object_unref (mem->device);
|
||||
|
||||
g_free (mem);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue