Fix memleak

This commit is contained in:
Benedikt Heine 2018-01-21 01:33:56 +01:00
parent 280ec456a4
commit 1e6a15de00

View File

@ -106,12 +106,17 @@ void load_settings(char *cmdline_config_path)
"Using STATIC_CONFIG is deprecated behavior."); "Using STATIC_CONFIG is deprecated behavior.");
#endif #endif
log_set_level_from_string(option_get_string( {
"global", char *loglevel = option_get_string(
"verbosity", "-verbosity", NULL, "global",
"The verbosity to log (one of 'info', 'mesg', 'warn', 'crit')" "verbosity", "-verbosity", NULL,
"The verbosity to log (one of 'crit', 'warn', 'mesg', 'info', 'debug')" "The verbosity to log (one of 'crit', 'warn', 'mesg', 'info', 'debug')"
)); );
log_set_level_from_string(loglevel);
g_free(loglevel);
}
settings.per_monitor_dpi = option_get_bool( settings.per_monitor_dpi = option_get_bool(
"experimental", "experimental",