mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 14:36:24 +00:00
allocator: fix memory leak in _fallback_mem_copy
https://bugzilla.gnome.org/show_bug.cgi?id=686658
This commit is contained in:
parent
ef552507fa
commit
3ae671fb9b
1 changed files with 1 additions and 0 deletions
|
@ -106,6 +106,7 @@ _fallback_mem_copy (GstMemory * mem, gssize offset, gssize size)
|
||||||
copy = gst_allocator_alloc (mem->allocator, size, ¶ms);
|
copy = gst_allocator_alloc (mem->allocator, size, ¶ms);
|
||||||
if (!gst_memory_map (copy, &dinfo, GST_MAP_WRITE)) {
|
if (!gst_memory_map (copy, &dinfo, GST_MAP_WRITE)) {
|
||||||
GST_CAT_WARNING (GST_CAT_MEMORY, "could not write map memory %p", copy);
|
GST_CAT_WARNING (GST_CAT_MEMORY, "could not write map memory %p", copy);
|
||||||
|
gst_allocator_free (mem->allocator, copy);
|
||||||
gst_memory_unmap (mem, &sinfo);
|
gst_memory_unmap (mem, &sinfo);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue