diff src/glyphs-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 543769b89fed
line wrap: on
line diff
--- a/src/glyphs-gtk.c	Mon Sep 29 21:53:04 2003 +0000
+++ b/src/glyphs-gtk.c	Tue Sep 30 15:27:01 2003 +0000
@@ -260,7 +260,7 @@
 #endif
 	    }
 	}
-      xfree(qtable);
+      xfree(qtable, quant_table *);
     } else {
       unsigned long rshift,gshift,bshift,rbits,gbits,bbits,junk;
       junk = vis->red_mask;
@@ -414,7 +414,7 @@
 		    gdk_pixmap_unref (IMAGE_INSTANCE_GTK_PIXMAP_SLICE (p,i));
 		    IMAGE_INSTANCE_GTK_PIXMAP_SLICE (p, i) = 0;
 		  }
-	      xfree (IMAGE_INSTANCE_GTK_PIXMAP_SLICES (p));
+	      xfree (IMAGE_INSTANCE_GTK_PIXMAP_SLICES (p), GdkPixmap **);
 	      IMAGE_INSTANCE_GTK_PIXMAP_SLICES (p) = 0;
 	    }
 
@@ -442,11 +442,11 @@
       && IMAGE_INSTANCE_TYPE (p) != IMAGE_SUBWINDOW
       && IMAGE_INSTANCE_GTK_PIXELS (p))
     {
-      xfree (IMAGE_INSTANCE_GTK_PIXELS (p));
+      xfree (IMAGE_INSTANCE_GTK_PIXELS (p), unsigned long *);
       IMAGE_INSTANCE_GTK_PIXELS (p) = 0;
     }
 
-  xfree (p->data);
+  xfree (p->data, void *);
   p->data = 0;
 }
 
@@ -838,7 +838,8 @@
 					      &pixtbl, &npixels);
       if (!gdk_image)
 	{
-	  if (pixtbl) xfree (pixtbl);
+	  if (pixtbl)
+	    xfree (pixtbl, unsigned long *);
 	  signal_image_error("EImage to GdkImage conversion failed", instantiator);
 	}
 
@@ -1292,7 +1293,8 @@
   }
   qxe_unlink (XSTRING_DATA (tempfile));
 
-  if (color_symbols) xfree (color_symbols);
+  if (color_symbols)
+    xfree (color_symbols, struct color_symbol *);
 
   if (!pixmap)
     signal_image_error ("Error reading pixmap", data);