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:
166f6e1
)
queue2: fix memory leak
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Fri, 27 Jan 2012 14:32:37 +0000
(15:32 +0100)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Fri, 27 Jan 2012 14:33:48 +0000
(15:33 +0100)
unmap the buffer memory on errors.
plugins/elements/gstqueue2.c
patch
|
blob
|
history
diff --git
a/plugins/elements/gstqueue2.c
b/plugins/elements/gstqueue2.c
index 524c6ed1fe607c01350cdd8147852105a5e15817..8c262249b4b9ab5f8071abaad0f373c246244e41 100644
(file)
--- a/
plugins/elements/gstqueue2.c
+++ b/
plugins/elements/gstqueue2.c
@@
-1288,12
+1288,14
@@
gst_queue2_create_read (GstQueue2 * queue, guint64 offset, guint length,
hit_eos:
{
GST_DEBUG_OBJECT (queue, "EOS hit and we don't have any requested data");
+ gst_buffer_unmap (buf, &info);
gst_buffer_unref (buf);
return GST_FLOW_EOS;
}
out_flushing:
{
GST_DEBUG_OBJECT (queue, "we are flushing");
+ gst_buffer_unmap (buf, &info);
gst_buffer_unref (buf);
return GST_FLOW_WRONG_STATE;
}