rmdemux: plug buffer leaking

This commit is contained in:
Mark Nauwelaerts 2009-06-19 17:25:58 +02:00
parent 22b82d30e5
commit 095c8eb5d4

View file

@ -2461,12 +2461,16 @@ gst_rmdemux_parse_audio_packet (GstRMDemux * rmdemux, GstRMDemuxStream * stream,
}
ret = gst_pad_push (stream->pad, buffer);
}
gst_buffer_unref (in);
return ret;
/* ERRORS */
alloc_failed:
{
GST_DEBUG_OBJECT (rmdemux, "pad alloc returned %d", ret);
gst_buffer_unref (in);
return cret;
}
}