changeset 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 0abc79c9142d
children 7b18f6e6e11c
files gui/interface.h
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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); \
     }