diff src/toolbar-msw.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 f0af455e89d9
children 04bc9d2f42c7
line wrap: on
line diff
--- a/src/toolbar-msw.c	Mon Sep 29 21:53:04 2003 +0000
+++ b/src/toolbar-msw.c	Tue Sep 30 15:27:01 2003 +0000
@@ -294,7 +294,7 @@
 			  if (! (bitmap = mswindows_create_resized_bitmap 
 				 (p, f, bmwidth, bmheight)))
 			    {
-			      xfree (button_tbl);
+			      xfree (button_tbl, TBBUTTON *);
 			      if (ilist) ImageList_Destroy (ilist);
 			      gui_error ("Couldn't resize pixmap", instance);
 			    }
@@ -317,7 +317,7 @@
 					 ? ILC_MASK  : 0) | ILC_COLOR24, 
 					nbuttons, nbuttons * 2 )))
 			{
-			  xfree (button_tbl);
+			  xfree (button_tbl, TBBUTTON *);
 			  gui_error ("Couldn't create image list", instance);
 			}
 
@@ -332,7 +332,7 @@
 			    mask ? mask 
 			    : IMAGE_INSTANCE_MSWINDOWS_MASK (p))) < 0)
 			{
-			  xfree (button_tbl);
+			  xfree (button_tbl, TBBUTTON *);
 			  if (ilist)
 			    ImageList_Destroy (ilist);
 			  gui_error 
@@ -394,7 +394,7 @@
 			      NULL, 
 			      NULL))==NULL)
 	{
-	  xfree (button_tbl);
+	  xfree (button_tbl, TBBUTTON *);
 	  ImageList_Destroy (ilist);
 	  gui_error ("couldn't create toolbar", Qunbound);
 	}
@@ -467,7 +467,8 @@
          happen otherwise. */
       mswindows_move_toolbar (f, pos);
 
-      if (button_tbl) xfree (button_tbl);
+      if (button_tbl)
+	xfree (button_tbl, TBBUTTON *);
 
       SET_TOOLBAR_WAS_VISIBLE_FLAG (f, pos, 1);
     }