projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b161a7e
)
stream: Fix a couple of format_info leaks
author
Arun Raghavan
<arun.raghavan@collabora.co.uk>
Sat, 18 Jun 2011 18:35:41 +0000
(11:35 -0700)
committer
Arun Raghavan
<arun.raghavan@collabora.co.uk>
Mon, 20 Jun 2011 00:46:35 +0000
(17:46 -0700)
src/pulse/stream.c
patch
|
blob
|
history
diff --git
a/src/pulse/stream.c
b/src/pulse/stream.c
index
cd5182a
..
4c754b7
100644
(file)
--- 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);