summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2010-01-18 10:57:42 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2010-01-18 10:58:39 +0100
commitb263ae123c73386ec3c5674e9b5faf6c39c7c689 (patch)
tree33c6b778121bf64f0287ec1e8f2701d13e1dbdc0
parent3c0170aa4b179a386ea65142226ddfb32d3047f5 (diff)
cdxaparse: Fix buffer leak
Fixes bug #607285.
-rw-r--r--gst/cdxaparse/gstcdxaparse.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gst/cdxaparse/gstcdxaparse.c b/gst/cdxaparse/gstcdxaparse.c
index 373aac757..466e287f9 100644
--- a/gst/cdxaparse/gstcdxaparse.c
+++ b/gst/cdxaparse/gstcdxaparse.c
@@ -304,6 +304,9 @@ gst_cdxa_parse_loop (GstPad * sinkpad)
}
sync_offset = gst_cdxa_parse_sync (buf);
+ gst_buffer_unref (buf);
+ buf = NULL;
+
if (sync_offset >= 0)
break;
@@ -358,6 +361,9 @@ gst_cdxa_parse_loop (GstPad * sinkpad)
eos:
{
GST_DEBUG_OBJECT (cdxa, "Sending EOS");
+ if (buf)
+ gst_buffer_unref (buf);
+ buf = NULL;
gst_pad_push_event (cdxa->srcpad, gst_event_new_eos ());
/* fallthrough */
}