info.cpu_usage = NULL;
}
#ifdef X11
- if (output_methods & TO_X) {
+ if (x_initialised == YES) {
#ifdef HAVE_XDBE
if (use_xdbe) {
XdbeDeallocateBackBufferName(display, window.back_buffer);
}
free_fonts();
+ }else{
+ free(fonts); //in set_default_configurations a font is set but not loaded
}
#endif /* X11 */
} else {
output_methods &= ~TO_X;
x_initialised = NEVER;
- free(fonts); //in set_default_configurations a font is set
+ free(fonts); //in set_default_configurations a font is set but not loaded
}
}
}