diff options
author | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2011-06-18 11:35:41 -0700 |
---|---|---|
committer | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2011-06-19 17:46:35 -0700 |
commit | 573b9d6ca87489cad40a6abb8c69c0c26569691b (patch) | |
tree | 97f1612e2780c12f83ef7a2ba1edc6aac0b845e4 /src/pulse/stream.c | |
parent | b161a7e07354963558b144a6043ab7ed7d9ab98c (diff) | |
download | pulseaudio-573b9d6ca87489cad40a6abb8c69c0c26569691b.tar.gz |
stream: Fix a couple of format_info leaks
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); |