From c2564fa2ceade9b51c3282cb0fa79684c16f20f3 Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Sat, 23 Jan 1999 04:16:18 +0000 Subject: [PATCH] Fixed a memory leak of the web shell in LoadURL() --- docshell/base/nsWebShell.cpp | 3 --- webshell/src/nsWebShell.cpp | 3 --- 2 files changed, 6 deletions(-) diff --git a/docshell/base/nsWebShell.cpp b/docshell/base/nsWebShell.cpp index d3ee0a3e41b..2c376858544 100644 --- a/docshell/base/nsWebShell.cpp +++ b/docshell/base/nsWebShell.cpp @@ -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(); } diff --git a/webshell/src/nsWebShell.cpp b/webshell/src/nsWebShell.cpp index d3ee0a3e41b..2c376858544 100644 --- a/webshell/src/nsWebShell.cpp +++ b/webshell/src/nsWebShell.cpp @@ -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(); }