pulse: Fix old bug in stream_free

Signed-off-by: Maarten Lankhorst<m.b.lankhorst@gmail.com>
This commit is contained in:
Maarten Lankhorst 2012-02-15 02:09:02 +01:00 committed by Tanu Kaskinen
parent aed3b6f9df
commit e91e78bb54

View file

@ -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) {