Bugfix: yuck! FREE() used a wrong check, effectively never free()ing memory

This commit is contained in:
Michael Stapelberg 2009-06-21 13:44:14 +02:00
parent 8140619d5b
commit 626e6b2b6f

View 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; \
} \