Mercurial > hg > xemacs-beta
diff src/frame-x.c @ 5239:f19e6bc25969
Backed out changeset 6466bc9ebf15
This would leave all but the first frame blank.
author | Mike Sperber <sperber@deinprogramm.de> |
---|---|
date | Tue, 13 Jul 2010 10:19:33 +0200 |
parents | 6466bc9ebf15 |
children | 308d34e9f07d |
line wrap: on
line diff
--- a/src/frame-x.c Wed Jun 23 08:04:18 2010 -0400 +++ b/src/frame-x.c Tue Jul 13 10:19:33 2010 +0200 @@ -2614,6 +2614,19 @@ DtDndDropUnregister (FRAME_X_TEXT_WIDGET (f)); #endif /* HAVE_CDE */ +#ifdef HAVE_XFT + /* If we have an XftDraw structure, we need to free it here. + We can't ever have an XftDraw without a Display, so we are safe + to free it in here, and we avoid too much playing around with the + malloc checking hooks this way. */ + if (FRAME_X_XFTDRAW (f)) + { + XftDrawDestroy (FRAME_X_XFTDRAW (f)); + FRAME_X_XFTDRAW (f) = NULL; + } +#endif + + assert (FRAME_X_SHELL_WIDGET (f) != 0); dpy = XtDisplay (FRAME_X_SHELL_WIDGET (f));