Commit 18a7267c authored by Alan Third's avatar Alan Third

Fix crash in ns_mouse_position (bug#44313)

* src/nsterm.m (ns_destroy_window): Close the window before freeing
the frame resources so we don't end up accessing the frame struct
after it's been freed.
parent b4ec9cf7
Pipeline #7715 failed with stage
in 6 minutes and 25 seconds
......@@ -1782,6 +1782,8 @@ Hide the window (X11 semantics)
NSTRACE ("ns_destroy_window");
check_window_system (f);
/* If this frame has a parent window, detach it as not doing so can
cause a crash in GNUStep. */
......@@ -1792,7 +1794,7 @@ Hide the window (X11 semantics)
[parent removeChildWindow: child];
check_window_system (f);
[[FRAME_NS_VIEW (f) window] close];
ns_free_frame_resources (f);
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