comparison src/objects-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 a1e328407366
children 04bc9d2f42c7
comparison
equal deleted inserted replaced
1725:7ff8f4d70aec 1726:a8d8f419b459
302 XFreeColors (DEVICE_X_DISPLAY (XDEVICE (c->device)), 302 XFreeColors (DEVICE_X_DISPLAY (XDEVICE (c->device)),
303 DEVICE_X_COLORMAP (XDEVICE (c->device)), 303 DEVICE_X_COLORMAP (XDEVICE (c->device)),
304 &COLOR_INSTANCE_X_COLOR (c).pixel, 1, 0); 304 &COLOR_INSTANCE_X_COLOR (c).pixel, 1, 0);
305 } 305 }
306 } 306 }
307 xfree (c->data); 307 xfree (c->data, void *);
308 c->data = 0; 308 c->data = 0;
309 } 309 }
310 } 310 }
311 311
312 /* Color instances are equal if they resolve to the same color on the 312 /* Color instances are equal if they resolve to the same color on the
472 { 472 {
473 Display *dpy = DEVICE_X_DISPLAY (XDEVICE (f->device)); 473 Display *dpy = DEVICE_X_DISPLAY (XDEVICE (f->device));
474 474
475 XFreeFont (dpy, FONT_INSTANCE_X_FONT (f)); 475 XFreeFont (dpy, FONT_INSTANCE_X_FONT (f));
476 } 476 }
477 xfree (f->data); 477 xfree (f->data, void *);
478 f->data = 0; 478 f->data = 0;
479 } 479 }
480 } 480 }
481 481
482 /* Determining the truename of a font is hard. (Big surprise.) 482 /* Determining the truename of a font is hard. (Big surprise.)