diff gui/interface.h @ 33282:3ce656827dd7

Use free() instead of gfree() in guiSetFilename and guiSetDF macros. The gfree() is pointless because there is a new assignment to the freed variable right afterwards. This also settles compiling issues with the Win32 part of the GUI reported by Stephen Sheldon, sfsheldo gmail com, who suggested the patch.
author ib
date Thu, 05 May 2011 08:51:33 +0000
parents 5f527a9a9521
children 733376438418
line wrap: on
line diff
--- a/gui/interface.h	Thu May 05 07:40:56 2011 +0000
+++ b/gui/interface.h	Thu May 05 08:51:33 2011 +0000
@@ -93,13 +93,13 @@
 
 #define guiSetFilename(s, n) \
     { \
-        gfree((void **)&s); \
+        free(s); \
         s = gstrdup(n); \
     }
 
 #define guiSetDF(s, d, n) \
     { \
-        gfree((void **)&s); \
+        free(s); \
         s = malloc(strlen(d) + strlen(n) + 5); \
         sprintf(s, "%s/%s", d, n); \
     }