Remove the extra AddRef to nsHistoryLayoutState. r=pollmann, bug #16496

git-svn-id: svn://10.0.0.236/trunk@52421 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
radha%netscape.com
1999-11-01 21:47:54 +00:00
parent e1c9192da5
commit d0a23025d8
2 changed files with 2 additions and 14 deletions

View File

@@ -2300,8 +2300,7 @@ nsWebShell::LoadURL(const PRUnichar *aURLSpec,
* session History, it will be set to the cached history object by
* session History.
*/
if (aHistoryState)
SetHistoryState(aHistoryState);
SetHistoryState(aHistoryState);
/*
* Set mURL to spec so that session history can get
@@ -2729,11 +2728,6 @@ nsWebShell::GetHistoryState(nsISupports** aLayoutHistoryState)
rv = docv->GetPresShell(*getter_AddRefs(shell));
if (NS_SUCCEEDED(rv)) {
rv = shell->GetHistoryState((nsILayoutHistoryState**) aLayoutHistoryState);
/* The following line was added by mistake in one of the previous checkins. It
* causes a leak of nsHistorylayoutState. But removing it causes a crash.
* Eric Pollmann(pollmann@netscape.com) is investigating it. Bug # 16496
*/
NS_ADDREF(*aLayoutHistoryState);
}
}
}