# HG changeset patch # User Gerd Moellmann # Date 979572537 0 # Node ID cb7e1d7b6b674d8088cab5affbfd56d934ead57f # Parent ab34c80276c0e6b3d589cb35734a64fdceaffd49 (x_connection_closed) [USE_X_TOOLKIT]: If x_display_info_for_display returns null, don't try to close the display; we didn't open it. diff -r ab34c80276c0 -r cb7e1d7b6b67 src/xterm.c --- a/src/xterm.c Mon Jan 15 13:46:41 2001 +0000 +++ b/src/xterm.c Mon Jan 15 15:28:57 2001 +0000 @@ -11288,7 +11288,10 @@ in OpenWindows. I don't know how to cicumvent it here. */ #ifdef USE_X_TOOLKIT - XtCloseDisplay (dpy); + /* If DPYINFO is null, this means we didn't open the display + in the first place, so don't try to close it. */ + if (dpyinfo) + XtCloseDisplay (dpy); #endif /* Indicate that this display is dead. */