Reviewed by Darin.
[WebKit-https.git] / WebCore / page / Frame.cpp
index 2905a4dab228dcaf711509d965f927d19f23b45f..26c98a6f0a48f3cbad8a2a8d760653d167466ec0 100644 (file)
@@ -1767,6 +1767,8 @@ void Frame::pageDestroyed()
         if (KJS::Window* w = KJS::Window::retrieveWindow(this))
             w->disconnectFrame();
 
+    clearScriptObjects();
+    
     d->m_page = 0;
 }