JavaScriptCore:
Reviewed by Beth Dakin.
Fixed up garbage collection at window close time.
* kjs/interpreter.cpp:
(KJS::Interpreter::~Interpreter): Garbage collect here, since
destroying the interpreter frees the global object and
therefore creates a lot of garbage.
WebCore:
Reviewed by Beth Dakin.
Fixed up garbage collection at window close time.
* bindings/js/kjs_proxy.cpp: Don't garbage collect in the KJSProxy
destructor, since the global object hasn't been freed yet.
* bindings/js/kjs_proxy.h:
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::detachFromParent): Made this function cross-
platform.
* loader/FrameLoader.h:
* loader/mac/FrameLoaderMac.mm:
(WebCore::FrameLoader::setTitle): Moved this function to FrameLoaderMac,
since it's Mac-only.
(WebCore::FrameLoader::closeBridge):
* page/Page.cpp:
(WebCore::Page::~Page): Don't garbage collect in the Page destructor,
since the Interpreter destructor will do it for us.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@17945
268f45cc-cd09-0410-ab3c-
d52691b4dbfc