mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-10 04:27:43 -05:00
ucm: split conf_file_name and conf_dir_name
With ucm2, the file name might differ from the directory name. Also, allocate those fields. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
b34715004f
commit
fe6425af75
5 changed files with 37 additions and 17 deletions
|
|
@ -441,7 +441,11 @@ void uc_mgr_free_verb(snd_use_case_mgr_t *uc_mgr)
|
|||
uc_mgr_free_sequence(&uc_mgr->default_list);
|
||||
uc_mgr_free_value(&uc_mgr->value_list);
|
||||
free(uc_mgr->comment);
|
||||
free(uc_mgr->conf_dir_name);
|
||||
free(uc_mgr->conf_file_name);
|
||||
uc_mgr->comment = NULL;
|
||||
uc_mgr->conf_dir_name = NULL;
|
||||
uc_mgr->conf_file_name = NULL;
|
||||
uc_mgr->active_verb = NULL;
|
||||
INIT_LIST_HEAD(&uc_mgr->active_devices);
|
||||
INIT_LIST_HEAD(&uc_mgr->active_modifiers);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue