i3bar: free fontname

This commit is contained in:
Orestis Floros 2017-09-26 12:30:03 +03:00
parent d4eaea8289
commit a7bae0341d
1 changed files with 1 additions and 0 deletions

View File

@ -192,6 +192,7 @@ static int config_string_cb(void *params_, const unsigned char *val, size_t _len
if (!strcmp(cur_key, "font")) {
DLOG("font = %.*s\n", len, val);
FREE(config.fontname);
sasprintf(&config.fontname, "%.*s", len, val);
return 1;
}