From a5c71cc2322bfcc9e611213a14ef4a83a7c61007 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Mart=C3=ADn?= Date: Mon, 19 Jun 2023 00:23:03 +0200 Subject: [PATCH] Prevent crashes on macOS when fullscreen frame is deleted * src/nsterm.m (ns_free_frame_resources): Remove the frame's window from the hierarchy. (Bug#64147) --- src/nsterm.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nsterm.m b/src/nsterm.m index 8c72bb25df1..78089906752 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -1624,7 +1624,7 @@ ns_free_frame_resources (struct frame *f) [f->output_data.ns->miniimage release]; [[view window] close]; - [view release]; + [view removeFromSuperview]; xfree (f->output_data.ns); f->output_data.ns = NULL; -- 2.39.2