diff --git a/gst-libs/gst/vulkan/gstvkbuffermemory.c b/gst-libs/gst/vulkan/gstvkbuffermemory.c index 576c644790..4dc15e82c7 100644 --- a/gst-libs/gst/vulkan/gstvkbuffermemory.c +++ b/gst-libs/gst/vulkan/gstvkbuffermemory.c @@ -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); } /** diff --git a/gst-libs/gst/vulkan/gstvkmemory.c b/gst-libs/gst/vulkan/gstvkmemory.c index 7be2be53c7..4cc45291ba 100644 --- a/gst-libs/gst/vulkan/gstvkmemory.c +++ b/gst-libs/gst/vulkan/gstvkmemory.c @@ -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); } /**