mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
map: don't mix insert_at() and _remove()
You are supposed to allocate with _insert_new()/_remove() or use someone elses allocated number with _insert_at(), never mix the two or it will give an error.
This commit is contained in:
parent
f6b1d65e35
commit
f39f9b207b
2 changed files with 3 additions and 3 deletions
|
|
@ -369,7 +369,7 @@ static int destroy_global(void *obj, void *data)
|
|||
if (global == NULL)
|
||||
return 0;
|
||||
|
||||
pw_map_remove(&global->rd->globals, global->id);
|
||||
pw_map_insert_at(&global->rd->globals, global->id, NULL);
|
||||
pw_properties_free(global->properties);
|
||||
free(global->type);
|
||||
free(global);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue