mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-01 22:58:47 -04:00
modernize hashmap implementation a bit, reduce memory consumption a bit
This commit is contained in:
parent
6dca92be96
commit
c26be0d762
6 changed files with 112 additions and 74 deletions
|
|
@ -845,7 +845,7 @@ void pa_memimport_free(pa_memimport *i) {
|
|||
|
||||
pa_mutex_lock(i->mutex);
|
||||
|
||||
while ((b = pa_hashmap_get_first(i->blocks)))
|
||||
while ((b = pa_hashmap_first(i->blocks)))
|
||||
memblock_replace_import(b);
|
||||
|
||||
pa_assert(pa_hashmap_size(i->segments) == 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue