mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 11:29:55 +00:00
ext/lame/gstlame.c: Don't leak the allowed caps.
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.
This commit is contained in:
parent
b1a031b960
commit
64b5df4dba
2 changed files with 3 additions and 0 deletions
|
@ -1200,6 +1200,8 @@ gst_lame_setup (GstLame * lame)
|
||||||
GST_DEBUG_OBJECT (lame, "Letting lame choose sample rate");
|
GST_DEBUG_OBJECT (lame, "Letting lame choose sample rate");
|
||||||
lame_set_out_samplerate (lame->lgf, 0);
|
lame_set_out_samplerate (lame->lgf, 0);
|
||||||
}
|
}
|
||||||
|
gst_caps_unref (allowed_caps);
|
||||||
|
allowed_caps = NULL;
|
||||||
} else {
|
} else {
|
||||||
GST_DEBUG_OBJECT (lame, "No peer yet, letting lame choose sample rate");
|
GST_DEBUG_OBJECT (lame, "No peer yet, letting lame choose sample rate");
|
||||||
lame_set_out_samplerate (lame->lgf, 0);
|
lame_set_out_samplerate (lame->lgf, 0);
|
||||||
|
|
|
@ -58,6 +58,7 @@ GST_START_TEST (test_format)
|
||||||
|
|
||||||
gst_buffer_straw_stop_pipeline (bin, pad);
|
gst_buffer_straw_stop_pipeline (bin, pad);
|
||||||
|
|
||||||
|
gst_buffer_unref (buffer);
|
||||||
gst_object_unref (pad);
|
gst_object_unref (pad);
|
||||||
gst_object_unref (bin);
|
gst_object_unref (bin);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue