diff src/imgproc.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 b39c14581166
children ecf1ebac70d8
line wrap: on
line diff
--- a/src/imgproc.c	Mon Sep 29 21:53:04 2003 +0000
+++ b/src/imgproc.c	Tue Sep 30 15:27:01 2003 +0000
@@ -536,7 +536,7 @@
   qt->num_active_colors = i;
 
   /* We're done with the boxes now */
-  xfree (box_list);
+  xfree (box_list, Colorbox *);
   qt->freeboxes = qt->usedboxes = NULL;
 
   /*
@@ -550,13 +550,14 @@
 
   /* 5c: done with ColorCells */
   for (i = 0; i < C_LEN*C_LEN*C_LEN; i++)
-    if (qt->ColorCells[i]) xfree (qt->ColorCells[i]);
-  xfree (qt->ColorCells);
+    if (qt->ColorCells[i])
+      xfree (qt->ColorCells[i], C_cell *);
+  xfree (qt->ColorCells, C_cell **);
   
   if (res)
     {
-      /* we failed in memory allocation, so clean up an leave */
-      xfree(qt);
+      /* we failed in memory allocation, so clean up and leave */
+      xfree(qt, quant_table *);
       return NULL;
     }