From a4faa802afd6718f97aeac254228240cc4a2d247 Mon Sep 17 00:00:00 2001 From: rdb Date: Thu, 19 Sep 2024 00:25:51 +0200 Subject: [PATCH] cocoa: Remove autorelease pool in process_events() We now have one around the entire frame, in graphicsEngine.cxx --- panda/src/cocoadisplay/cocoaGraphicsWindow.mm | 4 ---- 1 file changed, 4 deletions(-) diff --git a/panda/src/cocoadisplay/cocoaGraphicsWindow.mm b/panda/src/cocoadisplay/cocoaGraphicsWindow.mm index bfa35b41df..3cafabab1c 100644 --- a/panda/src/cocoadisplay/cocoaGraphicsWindow.mm +++ b/panda/src/cocoadisplay/cocoaGraphicsWindow.mm @@ -32,7 +32,6 @@ #import "cocoaPandaAppDelegate.h" #import -#import #import #import #import @@ -177,7 +176,6 @@ void CocoaGraphicsWindow:: process_events() { GraphicsWindow::process_events(); - NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; NSEvent *event = nil; while (true) { @@ -212,8 +210,6 @@ process_events() { [_window update]; } - [pool release]; - if (_context_needs_update && _gsg != nullptr) { update_context(); }