зеркало из https://github.com/mozilla/pjs.git
Fix leaks in the code that launches a child process. b=355355 r=mento sr=pinkerton
This commit is contained in:
Родитель
17f8a1ec1c
Коммит
e34f0ebfdd
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче