projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef55250
)
allocator: fix memory leak in _fallback_mem_copy
author
Miguel Angel Cabrera Moya
<madmac2501@gmail.com>
Mon, 22 Oct 2012 18:25:43 +0000
(20:25 +0200)
committer
Tim-Philipp Müller
<tim.muller@collabora.co.uk>
Mon, 22 Oct 2012 18:59:29 +0000
(19:59 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=686658
gst/gstallocator.c
patch
|
blob
|
history
diff --git
a/gst/gstallocator.c
b/gst/gstallocator.c
index
df5b04f
..
a80b9a1
100644
(file)
--- a/
gst/gstallocator.c
+++ b/
gst/gstallocator.c
@@
-106,6
+106,7
@@
_fallback_mem_copy (GstMemory * mem, gssize offset, gssize size)
copy = gst_allocator_alloc (mem->allocator, size, ¶ms);
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_memory_unmap (mem, &sinfo);
return NULL;
}