summaryrefslogtreecommitdiff
path: root/src/modules/gconf/module-gconf.c
diff options
context:
space:
mode:
authorTanu Kaskinen <tanu.kaskinen@linux.intel.com>2014-03-26 17:39:48 +0200
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>2014-04-17 10:06:23 +0300
commiteca082a93f2619cfa10733947a81fa779cb49573 (patch)
treee97621d7180832fb493c219a3db044a25c11a89b /src/modules/gconf/module-gconf.c
parent14e2553185e1afa93737586771326cd12a154239 (diff)
downloadpulseaudio-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.c6
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;