mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Fixed a memory leak of the web shell in LoadURL()
This commit is contained in:
parent
b7fad535ab
commit
6810e3ae38
@ -1232,9 +1232,6 @@ nsWebShell::LoadURL(const PRUnichar *aURLSpec,
|
||||
{
|
||||
// if this is the top level web shell, initialize some things, in case the
|
||||
// web shell is being recycled
|
||||
nsIWebShell *rootWebShell;
|
||||
GetRootWebShell(rootWebShell);
|
||||
//if (this == rootWebShell) {
|
||||
if (!mIsFrame) {
|
||||
InitFrameData();
|
||||
}
|
||||
|
@ -1232,9 +1232,6 @@ nsWebShell::LoadURL(const PRUnichar *aURLSpec,
|
||||
{
|
||||
// if this is the top level web shell, initialize some things, in case the
|
||||
// web shell is being recycled
|
||||
nsIWebShell *rootWebShell;
|
||||
GetRootWebShell(rootWebShell);
|
||||
//if (this == rootWebShell) {
|
||||
if (!mIsFrame) {
|
||||
InitFrameData();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user