stream: Fix a couple of format_info leaks

This commit is contained in:
Arun Raghavan 2011-06-18 11:35:41 -07:00
parent b161a7e073
commit 573b9d6ca8

View file

@ -303,7 +303,10 @@ static void stream_free(pa_stream *s) {
pa_smoother_free(s->smoother);
for (i = 0; i < s->n_formats; i++)
pa_xfree(s->req_formats[i]);
pa_format_info_free(s->req_formats[i]);
if (s->format)
pa_format_info_free(s->format);
pa_xfree(s->device_name);
pa_xfree(s);