[pulseaudio-commits] src/pulse

Tanu Kaskinen tanuk at kemper.freedesktop.org
Sun Feb 19 09:15:05 PST 2012


 src/pulse/stream.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit e91e78bb54456eda7f815afdb25857fe0887de22
Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date:   Wed Feb 15 02:09:02 2012 +0100

    pulse: Fix old bug in stream_free
    
    Signed-off-by: Maarten Lankhorst<m.b.lankhorst at gmail.com>

diff --git a/src/pulse/stream.c b/src/pulse/stream.c
index 0a96ced..6115cef 100644
--- 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) {



More information about the pulseaudio-commits mailing list