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

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