comparison src/device-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 39304a35b6b3 308d34e9f07d
comparison
equal deleted inserted replaced
5237:6466bc9ebf15 5239:f19e6bc25969
942 { 942 {
943 Display *display; 943 Display *display;
944 #ifdef FREE_CHECKING 944 #ifdef FREE_CHECKING
945 extern void (*__free_hook) (void *); 945 extern void (*__free_hook) (void *);
946 int checking_free; 946 int checking_free;
947 #endif
948
949 #ifdef HAVE_XFT
950 /* If we have an XftDraw structure, we need to free it here.
951 We can't ever have an XftDraw without a Display, so we are safe
952 to free it in here, and we avoid too much playing around with the
953 malloc checking hooks this way. */
954 if (DEVICE_X_XFTDRAW (d))
955 {
956 XftDrawDestroy (DEVICE_X_XFTDRAW (d));
957 DEVICE_X_XFTDRAW (d) = NULL;
958 }
959 #endif 947 #endif
960 948
961 display = DEVICE_X_DISPLAY (d); 949 display = DEVICE_X_DISPLAY (d);
962 950
963 if (display) 951 if (display)