Fixed circular references. nsDocLoader now supports weak references to it. Init() method moves out of constructor. nsDocLoader now has Destroy() method to start breakdown process.

This commit is contained in:
vidur@netscape.com
1999-09-09 23:53:55 +00:00
parent 4692dfbbe7
commit 7b17897c3b
5 changed files with 62 additions and 22 deletions

View File

@@ -1267,6 +1267,7 @@ nsWebShell::Destroy()
// Stop any URLs that are currently being loaded...
Stop();
mDocLoader->Destroy();
SetContainer(nsnull);
SetObserver(nsnull);