File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -6264,8 +6264,10 @@ static void timer_callback(CFRunLoopTimerRef timer, void* info)
62646264static bool verify_framework (void )
62656265{
62666266#ifdef COMPILING_FOR_10_6
6267+ NSAutoreleasePool * pool = [[NSAutoreleasePool alloc ] init ];
62676268 NSRunningApplication * app = [NSRunningApplication currentApplication ];
62686269 NSApplicationActivationPolicy activationPolicy = [app activationPolicy ];
6270+ [pool release ];
62696271 switch (activationPolicy) {
62706272 case NSApplicationActivationPolicyRegular:
62716273 case NSApplicationActivationPolicyAccessory:
@@ -6380,13 +6382,15 @@ void init_macosx(void)
63806382
63816383 PyOS_InputHook = wait_for_stdin;
63826384
6385+ NSAutoreleasePool * pool = [[NSAutoreleasePool alloc ] init ];
63836386 WindowServerConnectionManager* connectionManager = [WindowServerConnectionManager sharedManager ];
63846387 NSWorkspace * workspace = [NSWorkspace sharedWorkspace ];
63856388 NSNotificationCenter * notificationCenter = [workspace notificationCenter ];
63866389 [notificationCenter addObserver: connectionManager
63876390 selector: @selector (launch: )
63886391 name: NSWorkspaceDidLaunchApplicationNotification
63896392 object: nil ];
6393+ [pool release ];
63906394#if PY3K
63916395 return module;
63926396#endif
You can’t perform that action at this time.
0 commit comments