]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix crash when creating new NS frame (bug#43812)
authorAlan Third <alan@idiocy.org>
Mon, 5 Oct 2020 19:38:45 +0000 (20:38 +0100)
committerAlan Third <alan@idiocy.org>
Tue, 6 Oct 2020 20:05:18 +0000 (21:05 +0100)
* src/nsterm.m (ns_clear_under_internal_border): Check the frame is
live.

src/nsterm.m

index fdcd677d144c149ec5414da686518581238e9392..a702a051d00c31be39489f3b447dfa258f2f6c9a 100644 (file)
@@ -3032,7 +3032,7 @@ ns_clear_under_internal_border (struct frame *f)
 {
   NSTRACE ("ns_clear_under_internal_border");
 
-  if (FRAME_INTERNAL_BORDER_WIDTH (f) > 0)
+  if (FRAME_LIVE_P (f) && FRAME_INTERNAL_BORDER_WIDTH (f) > 0)
     {
       int border_width = FRAME_INTERNAL_BORDER_WIDTH (f);
       NSView *view = FRAME_NS_VIEW (f);