summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Raghavan <arun.raghavan@collabora.co.uk>2011-06-18 11:35:41 -0700
committerArun Raghavan <arun.raghavan@collabora.co.uk>2011-06-19 17:46:35 -0700
commit573b9d6ca87489cad40a6abb8c69c0c26569691b (patch)
tree97f1612e2780c12f83ef7a2ba1edc6aac0b845e4
parentb161a7e07354963558b144a6043ab7ed7d9ab98c (diff)
stream: Fix a couple of format_info leaks
-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 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);