asfdemux: don't leak payload if we are not pushing it
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 13 Jul 2012 14:41:05 +0000 (15:41 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 13 Jul 2012 14:41:05 +0000 (15:41 +0100)
gst/asfdemux/gstasfdemux.c

index bad84db..a9561e0 100644 (file)
@@ -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;