mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-17 06:59:56 -05:00
Use pa_hashmap_remove_and_free() where appropriate
This commit is contained in:
parent
14e2553185
commit
eca082a93f
14 changed files with 29 additions and 84 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue