Commit 18f534df authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(delete_kboard): Handle the case that selected_frame

has been deleted in the course of x_connection_closed.
parent 1d053370
......@@ -10032,9 +10032,11 @@ delete_kboard (kb)
*kbp = kb->next_kboard;
/* Prevent a dangling reference to KB. */
if (kb == current_kboard)
if (kb == current_kboard
&& FRAMEP (selected_frame)
&& FRAME_LIVE_P (XFRAME (selected_frame)))
{
current_kboard = SELECTED_FRAME ()->kboard;
current_kboard = XFRAME (selected_frame)->kboard;
if (current_kboard == kb)
abort ();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment