Commits

Bob Ippolito  committed 87ee2d5

typo in the templates

  • Participants
  • Parent commits 1605fe9
  • Branches pyobjc-ancient

Comments (0)

Files changed (2)

File Xcode/Project Templates/Cocoa-Python Application/main.m

 	NSAutoreleasePool *pythonPool = [[NSAutoreleasePool alloc] init];
 
 	[mainPyPath retain];
-	FILE *mainPy = fopen([mainPyPath retain fileSystemRepresentation], "r");
+	FILE *mainPy = fopen([mainPyPath fileSystemRepresentation], "r");
 	int rval = PyRun_SimpleFile(mainPy, [mainPyPath fileSystemRepresentation]);
 	fclose(mainPy);
 	[mainPyPath release];

File Xcode/Project Templates/Cocoa-Python Document-based Application/main.m

 	NSAutoreleasePool *pythonPool = [[NSAutoreleasePool alloc] init];
 
 	[mainPyPath retain];
-	FILE *mainPy = fopen([mainPyPath retain fileSystemRepresentation], "r");
+	FILE *mainPy = fopen([mainPyPath fileSystemRepresentation], "r");
 	int rval = PyRun_SimpleFile(mainPy, [mainPyPath fileSystemRepresentation]);
 	fclose(mainPy);
 	[mainPyPath release];