diff lwlib/xlwtabs.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
line wrap: on
line diff
--- a/lwlib/xlwtabs.c	Mon Sep 17 21:50:52 2007 +0000
+++ b/lwlib/xlwtabs.c	Tue Sep 18 02:55:29 2007 +0000
@@ -572,7 +572,11 @@
 static	void
 TabsDestroy(Widget w)
 {
-	TabsFreeGCs((TabsWidget)w) ;
+	TabsWidget tw = (TabsWidget) w;
+#ifdef USE_XFT_TABS
+	XftFontClose (XtDisplay (w), tw->tabs.renderFont);
+#endif /* ! USE_XFT_TABS */
+	TabsFreeGCs (tw) ;
 }