]> git.sur5r.net Git - i3/i3/commitdiff
Merge branch 'master' into next
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 2 Jul 2014 17:06:01 +0000 (19:06 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 2 Jul 2014 17:06:23 +0000 (19:06 +0200)
1  2 
i3bar/src/config.c

index 1f0c2a8eb2b3ec2439d3e65f8548a0ce7fa6de71,809b1ab4cfbec09840f919f3ae0bf42ab2e1efac..6f1a8b8e8cc387732b73cd504e65fc9ebadc77d5
@@@ -246,10 -246,9 +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); \
 -        FREE(colors->x);     \
++#define FREE_COLOR(x)    \
++    do {                 \
++        FREE(colors->x); \
      } while (0)
      FREE_COLOR(bar_fg);
      FREE_COLOR(bar_bg);