mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-01 22:58:47 -04:00
only unref memblock if there is one
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2455 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
971342de0b
commit
2e71f4d015
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue