From ec705a6c3485b508b64981bd5a7fd3a60611357d Mon Sep 17 00:00:00 2001 From: Alan Third Date: Mon, 5 Oct 2020 20:38:45 +0100 Subject: [PATCH] Fix crash when creating new NS frame (bug#43812) * src/nsterm.m (ns_clear_under_internal_border): Check the frame is live. --- src/nsterm.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nsterm.m b/src/nsterm.m index fdcd677d144..a702a051d00 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -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); -- 2.39.5