Original commit message from CVS:
* ext/lame/gstlame.c: (gst_lame_setup):
Don't leak the allowed caps.
* tests/check/pipelines/lame.c: (GST_START_TEST):
Stop leaking all buffers. Fixes bug #515575.
GST_DEBUG_OBJECT (lame, "Letting lame choose sample rate");
lame_set_out_samplerate (lame->lgf, 0);
}
+ gst_caps_unref (allowed_caps);
+ allowed_caps = NULL;
} else {
GST_DEBUG_OBJECT (lame, "No peer yet, letting lame choose sample rate");
lame_set_out_samplerate (lame->lgf, 0);
gst_buffer_straw_stop_pipeline (bin, pad);
+ gst_buffer_unref (buffer);
gst_object_unref (pad);
gst_object_unref (bin);
}