2008-12-09 Dmitry Titov <dimich@chromium.org>
authoroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 11 Dec 2008 02:14:04 +0000 (02:14 +0000)
committeroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 11 Dec 2008 02:14:04 +0000 (02:14 +0000)
        Reviewed by Darin Adler.

        Fix memory leak - need to call stopActiveDOMObjects
        when cached pages get destroyed.
        https://bugs.webkit.org/show_bug.cgi?id=22753

        * dom/Document.cpp:
        (WebCore::Document::detach):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@39193 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/dom/Document.cpp

index 387f4e5..01fc3d9 100644 (file)
@@ -1,3 +1,14 @@
+2008-12-09  Dmitry Titov  <dimich@chromium.org>
+
+        Reviewed by Darin Adler.
+
+        Fix memory leak - need to call stopActiveDOMObjects
+        when cached pages get destroyed.
+        https://bugs.webkit.org/show_bug.cgi?id=22753
+
+        * dom/Document.cpp:
+        (WebCore::Document::detach):
+
 2008-12-10  Alice Liu  <alice.liu@apple.com>
 
         Manual test for https://bugs.webkit.org/show_bug.cgi?id=20685
index 85d2b9d..c1058f9 100644 (file)
@@ -1278,6 +1278,7 @@ void Document::detach()
     ASSERT(!m_inPageCache);
 
     clearAXObjectCache();
+    stopActiveDOMObjects();
     
     RenderObject* render = renderer();