Fixed history state leak

git-svn-id: svn://10.0.0.236/trunk@49096 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
warren%netscape.com
1999-09-26 10:07:49 +00:00
parent 857e46c783
commit ae8cbc1bba
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) {