From 17bab071cc15aa378e96913ea84167fc4af88f02 Mon Sep 17 00:00:00 2001 From: Alan Third Date: Mon, 24 Sep 2018 11:02:41 +0100 Subject: [PATCH] Fix crash when flushing to screen (bug#32812) * src/nsterm.m (ns_flush_display): Create a new autorelease pool for the display code. --- src/nsterm.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nsterm.m b/src/nsterm.m index b36d847eb3..d6f6d8afee 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -1252,7 +1252,9 @@ static NSRect constrain_frame_rect(NSRect frameRect, bool isFullscreen) dirty by setNeedsDisplayInRect (in ns_focus), then this will call draw_rect: which will "expose" those areas. */ { + NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; [FRAME_NS_VIEW (f) displayIfNeeded]; + [pool release]; } -- 2.18.0