Browse Source

cocoa: Remove autorelease pool in process_events()

We now have one around the entire frame, in graphicsEngine.cxx
rdb 1 year ago
parent
commit
a4faa802af
1 changed files with 0 additions and 4 deletions
  1. 0 4
      panda/src/cocoadisplay/cocoaGraphicsWindow.mm

+ 0 - 4
panda/src/cocoadisplay/cocoaGraphicsWindow.mm

@@ -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();
   }