vulkan: Fix GstMemory leaks

Allocated GstMemory should be freed with g_free()
This commit is contained in:
Yeongjin Jeong 2019-08-02 16:31:59 +09:00 committed by Sebastian Dröge
parent f3587c61ba
commit 68057cee98
2 changed files with 4 additions and 0 deletions

View file

@ -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);
}
/**

View file

@ -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);
}
/**