]> git.sur5r.net Git - i3/i3/commitdiff
i3bar: free fontname
authorOrestis Floros <orestisf1993@gmail.com>
Tue, 26 Sep 2017 09:30:03 +0000 (12:30 +0300)
committerOrestis Floros <orestisf1993@gmail.com>
Tue, 17 Oct 2017 01:28:07 +0000 (04:28 +0300)
i3bar/src/config.c

index cbe84d5073e55b714a2d564fd4d666fdfb872e1a..edccd3c66f811f2cba68147ba7245bd826bdef3b 100644 (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;
     }