projects
/
profile
/
ivi
/
pulseaudio-panda.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aed3b6f
)
pulse: Fix old bug in stream_free
author
Maarten Lankhorst
<m.b.lankhorst@gmail.com>
Wed, 15 Feb 2012 01:09:02 +0000
(
02:09
+0100)
committer
Tanu Kaskinen
<tanuk@iki.fi>
Sun, 19 Feb 2012 17:02:08 +0000
(19:02 +0200)
Signed-off-by: Maarten Lankhorst<m.b.lankhorst@gmail.com>
src/pulse/stream.c
patch
|
blob
|
history
diff --git
a/src/pulse/stream.c
b/src/pulse/stream.c
index
0a96ced
..
6115cef
100644
(file)
--- a/
src/pulse/stream.c
+++ b/
src/pulse/stream.c
@@
-284,8
+284,9
@@
static void stream_free(pa_stream *s) {
stream_unlink(s);
if (s->write_memblock) {
- pa_memblock_release(s->write_memblock);
- pa_memblock_unref(s->write_data);
+ if (s->write_data)
+ pa_memblock_release(s->write_memblock);
+ pa_memblock_unref(s->write_memblock);
}
if (s->peek_memchunk.memblock) {