mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
gstallocator: Use the right allocator instance to free memory
In the case GST_ALLOCATOR_FLAG_CUSTOM_ALLOC is set, `copy` is allocated by the default allocator and not mem->allocator. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4144>
This commit is contained in:
parent
f3665ce800
commit
174132af8d
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ _fallback_mem_copy (GstMemory * mem, gssize offset, gssize size)
|
|||
|
||||
if (!gst_memory_map (copy, &dinfo, GST_MAP_WRITE)) {
|
||||
GST_CAT_WARNING (GST_CAT_MEMORY, "could not write map memory %p", copy);
|
||||
gst_allocator_free (mem->allocator, copy);
|
||||
gst_allocator_free (copy->allocator, copy);
|
||||
gst_memory_unmap (mem, &sinfo);
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue