diff --git a/i3bar/src/config.c b/i3bar/src/config.c index 1f0c2a8e..6f1a8b8e 100644 --- a/i3bar/src/config.c +++ b/i3bar/src/config.c @@ -246,10 +246,9 @@ void parse_config_json(char *json) { * */ void free_colors(struct xcb_color_strings_t *colors) { -#define FREE_COLOR(x) \ - do { \ - if (colors->x) \ - free(colors->x); \ +#define FREE_COLOR(x) \ + do { \ + FREE(colors->x); \ } while (0) FREE_COLOR(bar_fg); FREE_COLOR(bar_bg);