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:
bent.mozilla@gmail.com 2007-08-30 15:04:08 -07:00
parent e7f0887560
commit 9fe241ee64

View File

@ -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