aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Martín2023-06-19 00:23:03 +0200
committerEli Zaretskii2023-06-21 16:35:27 +0300
commita5c71cc2322bfcc9e611213a14ef4a83a7c61007 (patch)
tree3955d682cae9aeaf744f6411c9c9257ff752babe /src
parent4302bc9b0f120491d1a5d20c3af250d01b40bf47 (diff)
downloademacs-a5c71cc2322bfcc9e611213a14ef4a83a7c61007.tar.gz
emacs-a5c71cc2322bfcc9e611213a14ef4a83a7c61007.zip
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)
Diffstat (limited to 'src')
-rw-r--r--src/nsterm.m2
1 files changed, 1 insertions, 1 deletions
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)
1624 [f->output_data.ns->miniimage release]; 1624 [f->output_data.ns->miniimage release];
1625 1625
1626 [[view window] close]; 1626 [[view window] close];
1627 [view release]; 1627 [view removeFromSuperview];
1628 1628
1629 xfree (f->output_data.ns); 1629 xfree (f->output_data.ns);
1630 f->output_data.ns = NULL; 1630 f->output_data.ns = NULL;