Commit 558b37d8 authored by Edward Hervey's avatar Edward Hervey Committed by Edward Hervey

audioaggregator: Don't leak pads

all audioaggregator subclasses were leaking the first sink pad :)
parent 164b5a7f
......@@ -743,7 +743,6 @@ gst_audio_aggregator_sink_setcaps (GstAudioAggregatorPad * aaggpad,
&& info.rate != downstream_rate) || (first_configured_pad
&& info.rate != first_configured_pad->info.rate)) {
gst_pad_push_event (GST_PAD (aaggpad), gst_event_new_reconfigure ());
gst_object_unref (first_configured_pad);
ret = FALSE;
} else {
GST_OBJECT_LOCK (aaggpad);
......@@ -755,6 +754,9 @@ gst_audio_aggregator_sink_setcaps (GstAudioAggregatorPad * aaggpad,
}
done:
if (first_configured_pad)
gst_object_unref (first_configured_pad);
if (downstream_caps)
gst_caps_unref (downstream_caps);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment