i3bar: free fontname
This commit is contained in:
parent
d4eaea8289
commit
a7bae0341d
|
@ -192,6 +192,7 @@ static int config_string_cb(void *params_, const unsigned char *val, size_t _len
|
||||||
|
|
||||||
if (!strcmp(cur_key, "font")) {
|
if (!strcmp(cur_key, "font")) {
|
||||||
DLOG("font = %.*s\n", len, val);
|
DLOG("font = %.*s\n", len, val);
|
||||||
|
FREE(config.fontname);
|
||||||
sasprintf(&config.fontname, "%.*s", len, val);
|
sasprintf(&config.fontname, "%.*s", len, val);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue