diff src/glyphs-x.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-x.c	Mon Sep 29 21:53:04 2003 +0000
+++ b/src/glyphs-x.c	Tue Sep 30 15:27:01 2003 +0000
@@ -272,7 +272,7 @@
 #endif
 	    }
 	}
-      xfree(qtable);
+      xfree (qtable, quant_table *);
     } else {
       unsigned long rshift,gshift,bshift,rbits,gbits,bbits,junk;
       junk = vis->red_mask;
@@ -438,7 +438,7 @@
 		    XFreePixmap (dpy, IMAGE_INSTANCE_X_PIXMAP_SLICE (p,i));
 		    IMAGE_INSTANCE_X_PIXMAP_SLICE (p, i) = 0;
 		  }
-	      xfree (IMAGE_INSTANCE_X_PIXMAP_SLICES (p));
+	      xfree (IMAGE_INSTANCE_X_PIXMAP_SLICES (p), Pixmap *);
 	      IMAGE_INSTANCE_X_PIXMAP_SLICES (p) = 0;
 	    }
 
@@ -466,11 +466,11 @@
       && IMAGE_INSTANCE_TYPE (p) != IMAGE_SUBWINDOW
       && IMAGE_INSTANCE_X_PIXELS (p))
     {
-      xfree (IMAGE_INSTANCE_X_PIXELS (p));
+      xfree (IMAGE_INSTANCE_X_PIXELS (p), unsigned long *);
       IMAGE_INSTANCE_X_PIXELS (p) = 0;
     }
 
-  xfree (p->data);
+  xfree (p->data, void *);
   p->data = 0;
 }
 
@@ -862,7 +862,8 @@
 					 &pixtbl, &npixels);
       if (!ximage)
 	{
-	  if (pixtbl) xfree (pixtbl);
+	  if (pixtbl)
+	    xfree (pixtbl, unsigned long *);
 	  signal_image_error("EImage to XImage conversion failed", instantiator);
 	}
 
@@ -878,7 +879,7 @@
 	{
 	  if (ximage->data)
 	    {
-	      xfree (ximage->data);
+	      xfree (ximage->data, char *);
 	      ximage->data = 0;
 	    }
 	  XDestroyImage (ximage);
@@ -1301,8 +1302,8 @@
       int i;
 
       for (i = 0; i < (int) xpmattrs.numsymbols; i++)
-	xfree (color_symbols[i].name);
-      xfree (color_symbols);
+	xfree (color_symbols[i].name, char *);
+      xfree (color_symbols, XpmColorSymbol *);
       xpmattrs.colorsymbols = 0; /* in case XpmFreeAttr is too smart... */
       xpmattrs.numsymbols = 0;
     }