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.");
#endif
log_set_level_from_string(option_get_string(
"global",
"verbosity", "-verbosity", NULL,
"The verbosity to log (one of 'info', 'mesg', 'warn', 'crit')"
"The verbosity to log (one of 'crit', 'warn', 'mesg', 'info', 'debug')"
));
{
char *loglevel = option_get_string(
"global",
"verbosity", "-verbosity", NULL,
"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(
"experimental",