diff src/ui-gtk.c @ 1726:a8d8f419b459

[xemacs-hg @ 2003-09-30 15:26:34 by james] Add type information to xfree to avoid alias creation.
author james
date Tue, 30 Sep 2003 15:27:01 +0000
parents 01c57eb70ae9
children 3fe1a35b705d
line wrap: on
line diff
--- a/src/ui-gtk.c	Mon Sep 29 21:53:04 2003 +0000
+++ b/src/ui-gtk.c	Tue Sep 30 15:27:01 2003 +0000
@@ -347,7 +347,7 @@
   do {							\
     void *v = GTK_VALUE_POINTER(a);			\
     switch (GTK_FUNDAMENTAL_TYPE (a.type))		\
-    {							\
+      {							\
 	CONVERT_SINGLE_TYPE(a,CHAR,gchar);		\
 	CONVERT_SINGLE_TYPE(a,UCHAR,guchar);		\
 	CONVERT_SINGLE_TYPE(a,BOOL,gboolean);		\
@@ -363,11 +363,11 @@
 	CONVERT_SINGLE_TYPE(a,BOXED,void *);		\
 	CONVERT_SINGLE_TYPE(a,POINTER,void *);		\
 	CONVERT_SINGLE_TYPE(a,OBJECT,GtkObject *);	\
-	default:					\
-	GTK_VALUE_POINTER (a) = * (void **) v;	\
+      default:						\
+	GTK_VALUE_POINTER (a) = * (void **) v;		\
 	break;						\
-    }							\
-    if (freep) xfree(v);				\
+      }							\
+    if (freep) xfree(v, void *);			\
   } while (0)
 
 static gpointer __allocate_object_storage (GtkType t)