Fix leaks in the code that launches a child process. b=355355 r=mento sr=pinkerton

This commit is contained in:
hwaara%gmail.com 2006-10-11 15:53:40 +00:00
Родитель 17f8a1ec1c
Коммит e34f0ebfdd
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -47,9 +47,9 @@
void LaunchChild(int argc, char **argv)
{
int i;
NSTask *child = [[NSTask alloc] init];
NSMutableArray *args = [[NSMutableArray alloc] init];
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSTask *child = [[[NSTask alloc] init] autorelease];
NSMutableArray *args = [[[NSMutableArray alloc] init] autorelease];
#ifdef __ppc__
// It's possible that the app is a universal binary running under Rosetta

Просмотреть файл

@ -49,9 +49,9 @@
void LaunchChildMac(int aArgc, char** aArgv)
{
int i;
NSTask* child = [[NSTask alloc] init];
NSMutableArray* args = [[NSMutableArray alloc] init];
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
NSTask* child = [[[NSTask alloc] init] autorelease];
NSMutableArray* args = [[[NSMutableArray alloc] init] autorelease];
#ifdef __ppc__
// It's possible that the app is a universal binary running under Rosetta