diff --git a/i3bar/src/config.c b/i3bar/src/config.c index 1f0c2a8e..809b1ab4 100644 --- a/i3bar/src/config.c +++ b/i3bar/src/config.c @@ -248,8 +248,7 @@ 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); \ + FREE(colors->x); \ } while (0) FREE_COLOR(bar_fg); FREE_COLOR(bar_bg);