Hi everybody!
I think somebody noted segfaulting of any .app after Alt-Q press or Quit
menu item click... Backtrace in gdb points to the problems in
XCloseDisplay() call in the XGServer's dealloc method. I've tried to
place call of XCloseDisplay() from the bottom to top of dealloc method
and voila, segfault disappeared! I don't know exactly why this
happens... Maybe dpy variable freed in DESTROY(inputServer) or
[self _destroyServerWindows] methods...
Patch attached.
------------------------------------------------------------------------
--- CVS/core/back/Source/x11/XGServer.m Mon Jul 15 09:28:22 2002
+++ back/Source/x11/XGServer.m Tue Jul 30 16:06:34 2002
@@ -417,10 +417,10 @@
- (void) dealloc
{
NSDebugLog(@"Destroying X11 Server");
+ XCloseDisplay(dpy);
DESTROY(inputServer);
[self _destroyServerWindows];
NSFreeMapTable(screenList);
- XCloseDisplay(dpy);
[super dealloc];
}