mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
acp: copy the db_fix key as well
Or else we will try to free the original key twice and segfault. Fixes #1125
This commit is contained in:
parent
0f55ff9e60
commit
620e8de52a
1 changed files with 1 additions and 0 deletions
|
|
@ -3532,6 +3532,7 @@ finish:
|
||||||
* object. */
|
* object. */
|
||||||
e->db_fix = pa_xnewdup(pa_alsa_decibel_fix, db_fix, 1);
|
e->db_fix = pa_xnewdup(pa_alsa_decibel_fix, db_fix, 1);
|
||||||
e->db_fix->profile_set = NULL;
|
e->db_fix->profile_set = NULL;
|
||||||
|
e->db_fix->key = pa_xstrdup(db_fix->key);
|
||||||
e->db_fix->name = pa_xstrdup(db_fix->name);
|
e->db_fix->name = pa_xstrdup(db_fix->name);
|
||||||
e->db_fix->db_values = pa_xmemdup(db_fix->db_values, (db_fix->max_step - db_fix->min_step + 1) * sizeof(long));
|
e->db_fix->db_values = pa_xmemdup(db_fix->db_values, (db_fix->max_step - db_fix->min_step + 1) * sizeof(long));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue