From a74cbc5781f36e1bcf4aa95391190b7e13f008ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Wed, 1 Feb 2023 13:59:21 +0800 Subject: [PATCH] Sound: fix memleak, update config file --- src/common/init.c | 1 + src/data/config_user.txt | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/common/init.c b/src/common/init.c index 0125c4b75..42734a1a3 100644 --- a/src/common/init.c +++ b/src/common/init.c @@ -385,6 +385,7 @@ static void destroyConfig(FFinstance* instance) destroyModuleArg(&instance->config.openCL); destroyModuleArg(&instance->config.users); destroyModuleArg(&instance->config.bluetooth); + destroyModuleArg(&instance->config.sound); ffStrbufDestroy(&instance->config.libPCI); ffStrbufDestroy(&instance->config.libVulkan); diff --git a/src/data/config_user.txt b/src/data/config_user.txt index e4fcef289..3938e0783 100644 --- a/src/data/config_user.txt +++ b/src/data/config_user.txt @@ -255,9 +255,9 @@ # Sound show all option # Sets if all sound devices should be printed -# Must be either true or false -# Default is false ( only main device should be printed ). -#--sound-show-all false +# Must be either main, active or all. Default is main +# Default is main. +#--sound-type main # Percentage output type option # Applies to all modules that prints percentage values. Currently memory, swap, disk, battery and CPU usage are supported.