mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 547673 - Fix reading freed memory in XSMP handling. r=bsmedberg
This commit is contained in:
parent
eaba789900
commit
17e88cdb70
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user