diff options
Diffstat (limited to 'src/pulse/stream.c')
-rw-r--r-- | src/pulse/stream.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pulse/stream.c b/src/pulse/stream.c index cd5182ab4..4c754b736 100644 --- a/src/pulse/stream.c +++ b/src/pulse/stream.c @@ -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); |