File tree 1 file changed +4
-0
lines changed 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -6265,8 +6265,10 @@ static void timer_callback(CFRunLoopTimerRef timer, void* info)
6265
6265
static bool verify_framework(void)
6266
6266
{
6267
6267
#ifdef COMPILING_FOR_10_6
6268
+ NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
6268
6269
NSRunningApplication* app = [NSRunningApplication currentApplication];
6269
6270
NSApplicationActivationPolicy activationPolicy = [app activationPolicy];
6271
+ [pool release];
6270
6272
switch (activationPolicy) {
6271
6273
case NSApplicationActivationPolicyRegular:
6272
6274
case NSApplicationActivationPolicyAccessory:
@@ -6381,13 +6383,15 @@ void init_macosx(void)
6381
6383
6382
6384
PyOS_InputHook = wait_for_stdin;
6383
6385
6386
+ NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
6384
6387
WindowServerConnectionManager* connectionManager = [WindowServerConnectionManager sharedManager];
6385
6388
NSWorkspace* workspace = [NSWorkspace sharedWorkspace];
6386
6389
NSNotificationCenter* notificationCenter = [workspace notificationCenter];
6387
6390
[notificationCenter addObserver: connectionManager
6388
6391
selector: @selector(launch:)
6389
6392
name: NSWorkspaceDidLaunchApplicationNotification
6390
6393
object: nil];
6394
+ [pool release];
6391
6395
#if PY3K
6392
6396
return module;
6393
6397
#endif
You can’t perform that action at this time.
0 commit comments