Skip to content

Commit

Permalink
Fix memleak
Browse files Browse the repository at this point in the history
  • Loading branch information
bebehei committed Jan 21, 2018
1 parent 94db573 commit f3d68e5
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +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')"
));
{
char * loglevel = option_get_string(
"global",
"verbosity", "-verbosity", NULL,
"The verbosity to log (one of 'info', 'mesg', 'warn', 'crit')"
);

log_set_level_from_string(loglevel);

g_free(loglevel);
}

settings.per_monitor_dpi = option_get_bool(
"experimental",
Expand Down

0 comments on commit f3d68e5

Please sign in to comment.