Fix removes const keyword from the out param of nsIWebShell::GetURL and fixes a memory leak in viewer when it calls this method. b=102413 r=jaggernaut@netscape.com sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@104815 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -506,7 +506,7 @@ nsWebShell::GetHistoryIndex(PRInt32& aResult)
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsWebShell::GetURL(PRInt32 aIndex, const PRUnichar** aURLResult)
|
||||
nsWebShell::GetURL(PRInt32 aIndex, PRUnichar** aURLResult)
|
||||
{
|
||||
NS_ENSURE_STATE(mSessionHistory);
|
||||
NS_ENSURE_TRUE(!IsFrame(), NS_ERROR_FAILURE);
|
||||
|
||||
Reference in New Issue
Block a user