This commit is contained in:
radha%netscape.com 1999-09-20 21:09:16 +00:00
Родитель 23798c4eef
Коммит 122b9b2728
2 изменённых файлов: 10 добавлений и 8 удалений

Просмотреть файл

@ -985,6 +985,7 @@ nsWebShell::Init(nsNativeWidget aNativeParent,
NS_WITH_SERVICE(nsIDocumentLoader, docLoaderService, kDocLoaderServiceCID, &rv);
if (NS_FAILED(rv)) return rv;
rv = docLoaderService->CreateDocumentLoader(&mDocLoader);
if (NS_FAILED(rv)) return rv;
}
@ -3715,10 +3716,10 @@ nsresult nsWebShell::CheckForTrailingSlash(nsIURI* aURL)
// Replace the top most history entry with the new url
mSHist->SetURLForIndex(curIndex, newURL->GetUnicode());
}
else {
delete newURL;
delete historyURL;
}
if (newURL) delete newURL;
if (historyURL) delete historyURL;
return NS_OK;
}

Просмотреть файл

@ -985,6 +985,7 @@ nsWebShell::Init(nsNativeWidget aNativeParent,
NS_WITH_SERVICE(nsIDocumentLoader, docLoaderService, kDocLoaderServiceCID, &rv);
if (NS_FAILED(rv)) return rv;
rv = docLoaderService->CreateDocumentLoader(&mDocLoader);
if (NS_FAILED(rv)) return rv;
}
@ -3715,10 +3716,10 @@ nsresult nsWebShell::CheckForTrailingSlash(nsIURI* aURL)
// Replace the top most history entry with the new url
mSHist->SetURLForIndex(curIndex, newURL->GetUnicode());
}
else {
delete newURL;
delete historyURL;
}
if (newURL) delete newURL;
if (historyURL) delete historyURL;
return NS_OK;
}