summaryrefslogtreecommitdiff
path: root/src/nsterm.m
diff options
context:
space:
mode:
authorDaniel Martín <mardani29@yahoo.es>2023-06-19 00:23:03 +0200
committerEli Zaretskii <eliz@gnu.org>2023-06-21 16:35:27 +0300
commita5c71cc2322bfcc9e611213a14ef4a83a7c61007 (patch)
tree3955d682cae9aeaf744f6411c9c9257ff752babe /src/nsterm.m
parent4302bc9b0f120491d1a5d20c3af250d01b40bf47 (diff)
downloademacs-a5c71cc2322bfcc9e611213a14ef4a83a7c61007.tar.gz
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/nsterm.m')
-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)
[f->output_data.ns->miniimage release];
[[view window] close];
- [view release];
+ [view removeFromSuperview];
xfree (f->output_data.ns);
f->output_data.ns = NULL;