]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: yuck! FREE() used a wrong check, effectively never free()ing memory
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 21 Jun 2009 11:44:14 +0000 (13:44 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 21 Jun 2009 11:44:14 +0000 (13:44 +0200)
include/util.h

index 437411b63ee66b9576e37df39d34802e1c673f7b..c7209061f92ac3669dc86b2b8abc27abee4aff2c 100644 (file)
@@ -25,7 +25,7 @@
                         for (int cols = 0; cols < (workspace)->cols; cols++) \
                                 for (int rows = 0; rows < (workspace)->rows; rows++)
 #define FREE(pointer) do { \
-        if (pointer == NULL) { \
+        if (pointer != NULL) { \
                 free(pointer); \
                 pointer = NULL; \
         } \