Bug 547673 - Fix reading freed memory in XSMP handling. r=bsmedberg

This commit is contained in:
Wolfgang Rosenauer 2010-03-05 22:56:40 +01:00
parent eaba789900
commit 17e88cdb70

View File

@ -413,6 +413,7 @@ nsNativeAppSupportUnix::Start(PRBool *aRetVal)
// Set the correct/requested restart command in any case.
// Is there a request to suppress default binary launcher?
nsCAutoString path;
char* argv1 = getenv("MOZ_APP_LAUNCHER");
if(!argv1) {
@ -425,8 +426,6 @@ nsNativeAppSupportUnix::Start(PRBool *aRetVal)
rv = gDirServiceProvider->GetFile(XRE_EXECUTABLE_FILE, &dummy, getter_AddRefs(executablePath));
if (NS_SUCCEEDED(rv)) {
nsCAutoString path;
// Strip off the -bin suffix to get the shell script we should run; this is what Breakpad does
nsCAutoString leafName;
rv = executablePath->GetNativeLeafName(leafName);