From 482a1bd2302d8cd97d8e94d4f99af848dda0a784 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Wed, 13 Dec 1995 20:08:11 +0000 Subject: [PATCH] (x_connection_closed): Don't delete dpyinfo if it's null. --- src/xterm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xterm.c b/src/xterm.c index 1f7f3b5a9e7..c2e1e56d76c 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -4563,7 +4563,8 @@ x_connection_closed (display, error_message) Fdelete_frame (frame, Qt); } - x_delete_display (dpyinfo); + if (dpyinfo) + x_delete_display (dpyinfo); if (x_display_list == 0) { -- 2.39.2