mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +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
|
// if this is the top level web shell, initialize some things, in case the
|
||||||
// web shell is being recycled
|
// web shell is being recycled
|
||||||
nsIWebShell *rootWebShell;
|
|
||||||
GetRootWebShell(rootWebShell);
|
|
||||||
//if (this == rootWebShell) {
|
|
||||||
if (!mIsFrame) {
|
if (!mIsFrame) {
|
||||||
InitFrameData();
|
InitFrameData();
|
||||||
}
|
}
|
||||||
|
@ -1232,9 +1232,6 @@ nsWebShell::LoadURL(const PRUnichar *aURLSpec,
|
|||||||
{
|
{
|
||||||
// if this is the top level web shell, initialize some things, in case the
|
// if this is the top level web shell, initialize some things, in case the
|
||||||
// web shell is being recycled
|
// web shell is being recycled
|
||||||
nsIWebShell *rootWebShell;
|
|
||||||
GetRootWebShell(rootWebShell);
|
|
||||||
//if (this == rootWebShell) {
|
|
||||||
if (!mIsFrame) {
|
if (!mIsFrame) {
|
||||||
InitFrameData();
|
InitFrameData();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user