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)
6264
6264
static bool verify_framework (void )
6265
6265
{
6266
6266
#ifdef COMPILING_FOR_10_6
6267
+ NSAutoreleasePool * pool = [[NSAutoreleasePool alloc ] init ];
6267
6268
NSRunningApplication * app = [NSRunningApplication currentApplication ];
6268
6269
NSApplicationActivationPolicy activationPolicy = [app activationPolicy ];
6270
+ [pool release ];
6269
6271
switch (activationPolicy) {
6270
6272
case NSApplicationActivationPolicyRegular:
6271
6273
case NSApplicationActivationPolicyAccessory:
@@ -6380,13 +6382,15 @@ void init_macosx(void)
6380
6382
6381
6383
PyOS_InputHook = wait_for_stdin;
6382
6384
6385
+ NSAutoreleasePool * pool = [[NSAutoreleasePool alloc ] init ];
6383
6386
WindowServerConnectionManager* connectionManager = [WindowServerConnectionManager sharedManager ];
6384
6387
NSWorkspace * workspace = [NSWorkspace sharedWorkspace ];
6385
6388
NSNotificationCenter * notificationCenter = [workspace notificationCenter ];
6386
6389
[notificationCenter addObserver: connectionManager
6387
6390
selector: @selector (launch: )
6388
6391
name: NSWorkspaceDidLaunchApplicationNotification
6389
6392
object: nil ];
6393
+ [pool release ];
6390
6394
#if PY3K
6391
6395
return module;
6392
6396
#endif
You can’t perform that action at this time.
0 commit comments