summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2012-07-13 15:41:05 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2012-07-13 15:41:05 +0100
commit0c6e50a7b8c0590c7aab8858607a568c70f17634 (patch)
tree741ac953df7bf4a7b7e8f648311c79173cb1e942 /gst
parent2a0945887eedf578e944028bd1e1a35777b90e15 (diff)
asfdemux: don't leak payload if we are not pushing it
Diffstat (limited to 'gst')
-rw-r--r--gst/asfdemux/gstasfdemux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/asfdemux/gstasfdemux.c b/gst/asfdemux/gstasfdemux.c
index bad84dbb..a9561e01 100644
--- a/gst/asfdemux/gstasfdemux.c
+++ b/gst/asfdemux/gstasfdemux.c
@@ -1520,6 +1520,7 @@ gst_asf_demux_push_complete_payloads (GstASFDemux * demux, gboolean force)
ret = gst_pad_push (stream->pad, payload->buf);
ret = gst_asf_demux_aggregate_flow_return (demux, stream, ret);
} else {
+ gst_buffer_unref (payload->buf);
ret = GST_FLOW_OK;
}
payload->buf = NULL;