modernize hashmap implementation a bit, reduce memory consumption a bit

This commit is contained in:
Lennart Poettering 2008-06-27 20:12:24 +02:00
parent 6dca92be96
commit c26be0d762
6 changed files with 112 additions and 74 deletions

View file

@ -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);