mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05: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
|
|
@ -690,7 +690,7 @@ void pa__done(pa_module*m) {
|
|||
pa_sap_context_destroy(&u->sap_context);
|
||||
|
||||
if (u->by_origin) {
|
||||
while ((s = pa_hashmap_get_first(u->by_origin)))
|
||||
while ((s = pa_hashmap_first(u->by_origin)))
|
||||
session_free(s);
|
||||
|
||||
pa_hashmap_free(u->by_origin, NULL, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue