From: Daniel Martín Date: Sun, 18 Jun 2023 22:23:03 +0000 (+0200) Subject: Prevent crashes on macOS when fullscreen frame is deleted X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a5c71cc2322bfcc9e611213a14ef4a83a7c61007;p=emacs.git 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) --- 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;