Skip to content
Snippets Groups Projects
Commit 3ae671fb authored by Miguel Angel Cabrera Moya's avatar Miguel Angel Cabrera Moya Committed by Tim-Philipp Müller
Browse files

allocator: fix memory leak in _fallback_mem_copy

https://bugzilla.gnome.org/show_bug.cgi?id=686658
parent ef552507
No related branches found
No related tags found
No related merge requests found
...@@ -106,6 +106,7 @@ _fallback_mem_copy (GstMemory * mem, gssize offset, gssize size) ...@@ -106,6 +106,7 @@ _fallback_mem_copy (GstMemory * mem, gssize offset, gssize size)
copy = gst_allocator_alloc (mem->allocator, size, &params); copy = gst_allocator_alloc (mem->allocator, size, &params);
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;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment