OSDN Git Service

alsactl: safe state store and memory allocation cleanups
authorJaroslav Kysela <perex@perex.cz>
Wed, 3 Apr 2013 09:13:41 +0000 (11:13 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 3 Apr 2013 09:16:46 +0000 (11:16 +0200)
commite3e85a851cef51155bb9c23f5da526a9b9817dcf
tree95180baf38ae449bb8844230bd73ab0edce3faff
parent6de3c709b34c263e93a326e0a025c419ff3dd0f7
alsactl: safe state store and memory allocation cleanups

- store new configuration to file + ".new" extension, rename later
- free the configuration tree on exit from load_state()/save_state()
- call snd_config_update_free_global() at the end of command blocks

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
alsactl/alsactl.c
alsactl/state.c