mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
reverse order flist destruction and mempool allocation warning
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1543 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
222a6d270e
commit
bc17b8ea2d
1 changed files with 2 additions and 1 deletions
|
|
@ -669,12 +669,13 @@ void pa_mempool_free(pa_mempool *p) {
|
|||
|
||||
pa_mutex_unlock(p->mutex);
|
||||
|
||||
pa_flist_free(p->free_slots, NULL);
|
||||
|
||||
if (pa_atomic_load(&p->stat.n_allocated) > 0) {
|
||||
/* raise(SIGTRAP); */
|
||||
pa_log_warn("WARNING! Memory pool destroyed but not all memory blocks freed! %u remain.", pa_atomic_load(&p->stat.n_allocated));
|
||||
}
|
||||
|
||||
pa_flist_free(p->free_slots, NULL);
|
||||
pa_shm_free(&p->memory);
|
||||
|
||||
pa_mutex_free(p->mutex);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue