diff options
author | Tanu Kaskinen <tanu.kaskinen@linux.intel.com> | 2014-03-26 17:39:48 +0200 |
---|---|---|
committer | Tanu Kaskinen <tanu.kaskinen@linux.intel.com> | 2014-04-17 10:06:23 +0300 |
commit | eca082a93f2619cfa10733947a81fa779cb49573 (patch) | |
tree | e97621d7180832fb493c219a3db044a25c11a89b /src/modules/gconf/module-gconf.c | |
parent | 14e2553185e1afa93737586771326cd12a154239 (diff) | |
download | pulseaudio-eca082a93f2619cfa10733947a81fa779cb49573.tar.gz |
Use pa_hashmap_remove_and_free() where appropriate
Diffstat (limited to 'src/modules/gconf/module-gconf.c')
-rw-r--r-- | src/modules/gconf/module-gconf.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/modules/gconf/module-gconf.c b/src/modules/gconf/module-gconf.c index dee15af0b..388574615 100644 --- a/src/modules/gconf/module-gconf.c +++ b/src/modules/gconf/module-gconf.c @@ -289,11 +289,7 @@ static int handle_event(struct userdata *u) { if (!(name = read_string(u))) goto fail; - if ((m = pa_hashmap_get(u->module_infos, name))) { - pa_hashmap_remove(u->module_infos, name); - module_info_free(m); - } - + pa_hashmap_remove_and_free(u->module_infos, name); pa_xfree(name); break; |