mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -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
|
|
@ -615,7 +615,7 @@ void pa__done(pa_module*m) {
|
|||
if (u->services) {
|
||||
struct service *s;
|
||||
|
||||
while ((s = pa_hashmap_get_first(u->services)))
|
||||
while ((s = pa_hashmap_first(u->services)))
|
||||
service_free(s);
|
||||
|
||||
pa_hashmap_free(u->services, NULL, NULL);
|
||||
|
|
|
|||
|
|
@ -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