Also remove extra snd_config_update_free_global() call for dump-state.
There's a global call in the main() function.
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
return err;
err = dump_config_tree(top);
snd_config_delete(top);
- snd_config_update_free_global();
return err;
}
if (err < 0)
return err;
/* expand cards.* tree */
- snd_config_search_definition(top, "cards", "dummy", &cfg2);
+ err = snd_config_search_definition(top, "cards", "_dummy_", &cfg2);
+ if (err >= 0)
+ snd_config_delete(cfg2);
err = dump_config_tree(top);
snd_config_unref(top);
return err;