mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
json: fix free of arrays
This commit is contained in:
parent
3d34acd2f2
commit
7c18cc431f
1 changed files with 2 additions and 2 deletions
|
|
@ -53,9 +53,9 @@ struct pa_json_object {
|
|||
|
||||
static void clear_array(struct pw_array *array)
|
||||
{
|
||||
pa_json_object *value;
|
||||
pa_json_object **value;
|
||||
pw_array_for_each(value, array)
|
||||
pa_json_object_free(value);
|
||||
pa_json_object_free(*value);
|
||||
pw_array_clear(array);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue