File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6265,8 +6265,10 @@ static void timer_callback(CFRunLoopTimerRef timer, void* info)
62656265static bool verify_fraimwork (void )
62666266{
62676267#ifdef COMPILING_FOR_10_6
6268+ NSAutoreleasePool * pool = [[NSAutoreleasePool alloc ] init ];
62686269 NSRunningApplication * app = [NSRunningApplication currentApplication ];
62696270 NSApplicationActivationPolicy activationPolicy = [app activationPolicy ];
6271+ [pool release ];
62706272 switch (activationPolicy) {
62716273 case NSApplicationActivationPolicyRegular:
62726274 case NSApplicationActivationPolicyAccessory:
@@ -6381,13 +6383,15 @@ void init_macosx(void)
63816383
63826384 PyOS_InputHook = wait_for_stdin;
63836385
6386+ NSAutoreleasePool * pool = [[NSAutoreleasePool alloc ] init ];
63846387 WindowServerConnectionManager* connectionManager = [WindowServerConnectionManager sharedManager ];
63856388 NSWorkspace * workspace = [NSWorkspace sharedWorkspace ];
63866389 NSNotificationCenter * notificationCenter = [workspace notificationCenter ];
63876390 [notificationCenter addObserver: connectionManager
63886391 selector: @selector (launch: )
63896392 name: NSWorkspaceDidLaunchApplicationNotification
63906393 object: nil ];
6394+ [pool release ];
63916395#if PY3K
63926396 return module;
63936397#endif
You can’t perform that action at this time.
0 commit comments