mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 10:44:56 +00:00
Bug 392808 - 'Remove bogus assertion from nsXULStub ("Parsed app directory?") and stop leaking appData->directory'. r=bsmedberg. a=xulrunner-only
This commit is contained in:
parent
e7f0887560
commit
9fe241ee64
@ -330,13 +330,7 @@ main(int argc, char **argv)
|
||||
return 1;
|
||||
}
|
||||
|
||||
NS_ASSERTION(!appData->directory, "Parsed app directory?");
|
||||
|
||||
// chop "application.ini" off the path again
|
||||
lastSlash = strrchr(iniPath, PATH_SEPARATOR_CHAR);
|
||||
*lastSlash = '\0';
|
||||
NS_NewNativeLocalFile(nsDependentCString(iniPath), PR_FALSE,
|
||||
&appData->directory);
|
||||
NS_ASSERTION(appData->directory, "Failed to get app directory.");
|
||||
|
||||
if (!appData->xreDirectory) {
|
||||
// chop "libxul.so" off the GRE path
|
||||
|
Loading…
Reference in New Issue
Block a user