summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pulsecore/source-output.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pulsecore/source-output.c b/src/pulsecore/source-output.c
index 5c36937a..2ed4bb56 100644
--- a/src/pulsecore/source-output.c
+++ b/src/pulsecore/source-output.c
@@ -409,7 +409,8 @@ void pa_source_output_push(pa_source_output *o, const pa_memchunk *chunk) {
if (rchunk.length > 0)
o->push(o, &rchunk);
- pa_memblock_unref(rchunk.memblock);
+ if (rchunk.memblock)
+ pa_memblock_unref(rchunk.memblock);
}
pa_memblock_unref(qchunk.memblock);