summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/pulse/stream.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pulse/stream.c b/src/pulse/stream.c
index cd5182ab..4c754b73 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);