Reviewed by Maciej.
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 8 Jul 2006 00:21:40 +0000 (00:21 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 8 Jul 2006 00:21:40 +0000 (00:21 +0000)
        - fixed a storage leak noticed by the buildbot

        * dom/Document.cpp: (WebCore::Document::removedLastRef):
        Call delete on the markers before clearing the map containing them.

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

WebCore/ChangeLog
WebCore/dom/Document.cpp

index 655ff1618742b43d9fc6105ef5ec4235640e405d..3dbb360131a6f7ec56c2366a351730a4be01866f 100644 (file)
@@ -1,3 +1,12 @@
+2006-07-07  Darin Adler  <darin@apple.com>
+
+        Reviewed by Maciej.
+
+        - fixed a storage leak noticed by the buildbot
+
+        * dom/Document.cpp: (WebCore::Document::removedLastRef):
+        Call delete on the markers before clearing the map containing them.
+
 2006-07-08  Anders Carlsson  <acarlsson@apple.com>
 
         Reviewed by Brady.
index 001cfcdba0d10e583778f7e2448f829392e1d893..9b35d2cd337abb7b63313f44e565389cd3e0c4dc 100644 (file)
@@ -303,6 +303,7 @@ void Document::removedLastRef()
 
         removeAllChildren();
 
+        deleteAllValues(m_markers);
         m_markers.clear();
 
         delete m_tokenizer;