comparison lwlib/xlwmenu.c @ 4173:03f6627a2e09

[xemacs-hg @ 2007-09-18 02:55:29 by james] Release XftFont resources. See xemacs-patches message <870180fe0709151610s3618b854y1f845489d4723f00@mail.gmail.com>.
author james
date Tue, 18 Sep 2007 02:55:29 +0000
parents 382b11fa8866
children 383ab474a241
comparison
equal deleted inserted replaced
4172:a7adbba5c862 4173:03f6627a2e09
3349 /* this doesn't come from the resource db but is created explicitly 3349 /* this doesn't come from the resource db but is created explicitly
3350 so we must free it ourselves. */ 3350 so we must free it ourselves. */
3351 XFreePixmap (XtDisplay (mw), mw->menu.gray_pixmap); 3351 XFreePixmap (XtDisplay (mw), mw->menu.gray_pixmap);
3352 mw->menu.gray_pixmap = (Pixmap) -1; 3352 mw->menu.gray_pixmap = (Pixmap) -1;
3353 3353
3354 #ifdef USE_XFT_MENUBARS
3355 XftFontClose (XtDisplay (mw), mw->menu.renderFont);
3356 #endif
3357
3354 /* Don't free mw->menu.contents because that comes from our creator. 3358 /* Don't free mw->menu.contents because that comes from our creator.
3355 The `*_stack' elements are just pointers into `contents' so leave 3359 The `*_stack' elements are just pointers into `contents' so leave
3356 that alone too. But free the stacks themselves. */ 3360 that alone too. But free the stacks themselves. */
3357 if (mw->menu.old_stack) XtFree ((char *) mw->menu.old_stack); 3361 if (mw->menu.old_stack) XtFree ((char *) mw->menu.old_stack);
3358 if (mw->menu.new_stack) XtFree ((char *) mw->menu.new_stack); 3362 if (mw->menu.new_stack) XtFree ((char *) mw->menu.new_stack);