Fixed history state leak

This commit is contained in:
warren@netscape.com
1999-09-26 10:07:49 +00:00
parent 47bdce759b
commit 574f659d38
2 changed files with 4 additions and 4 deletions

View File

@@ -2150,10 +2150,10 @@ nsWebShell::LoadURI(nsIURI * aUri,
* session history
*/
nsISupports * historyState=nsnull;
nsCOMPtr<nsISupports> historyState;
// Get the history object for the previous page.
rv = GetHistoryState(&historyState);
rv = GetHistoryState(getter_AddRefs(historyState));
nsCOMPtr<nsIWebShell> rootWebShell;
rv = GetRootWebShell(*getter_AddRefs(rootWebShell));
if (NS_SUCCEEDED(rv) && rootWebShell) {