projects
/
profile
/
ivi
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1cdcfd
)
fix a bad memory access when destructing pa_memimports
author
Lennart Poettering
<lennart@poettering.net>
Thu, 23 Aug 2007 22:34:49 +0000
(22:34 +0000)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 23 Aug 2007 22:34:49 +0000
(22:34 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1711
fefdeb5f
-60dc-0310-8127-
8f9354f1896f
src/pulsecore/memblock.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/memblock.c
b/src/pulsecore/memblock.c
index
da99609
..
914e429
100644
(file)
--- a/
src/pulsecore/memblock.c
+++ b/
src/pulsecore/memblock.c
@@
-608,10
+608,11
@@
static void memblock_replace_import(pa_memblock *b) {
memblock_make_local(b);
- if (-- seg->n_blocks <= 0)
+ if (-- seg->n_blocks <= 0) {
+ pa_mutex_unlock(seg->import->mutex);
segment_detach(seg);
-
- pa_mutex_unlock(seg->import->mutex);
+ } else
+
pa_mutex_unlock(seg->import->mutex);
}
pa_mempool* pa_mempool_new(int shared) {