mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
fix a bad memory access when destructing pa_memimports
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1711 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
c1cdcfde7c
commit
4eb9bb0746
1 changed files with 4 additions and 3 deletions
|
|
@ -608,10 +608,11 @@ static void memblock_replace_import(pa_memblock *b) {
|
||||||
|
|
||||||
memblock_make_local(b);
|
memblock_make_local(b);
|
||||||
|
|
||||||
if (-- seg->n_blocks <= 0)
|
if (-- seg->n_blocks <= 0) {
|
||||||
|
pa_mutex_unlock(seg->import->mutex);
|
||||||
segment_detach(seg);
|
segment_detach(seg);
|
||||||
|
} else
|
||||||
pa_mutex_unlock(seg->import->mutex);
|
pa_mutex_unlock(seg->import->mutex);
|
||||||
}
|
}
|
||||||
|
|
||||||
pa_mempool* pa_mempool_new(int shared) {
|
pa_mempool* pa_mempool_new(int shared) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue