cocoa: Remove autorelease pool in process_events()

We now have one around the entire frame, in graphicsEngine.cxx
This commit is contained in:
rdb
2024-09-19 00:25:51 +02:00
parent 442558bb2d
commit a4faa802af
@@ -32,7 +32,6 @@
#import "cocoaPandaAppDelegate.h"
#import <ApplicationServices/ApplicationServices.h>
#import <Foundation/NSAutoreleasePool.h>
#import <AppKit/NSApplication.h>
#import <AppKit/NSCursor.h>
#import <AppKit/NSEvent.h>
@@ -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();
}