2011-01-24 Simon Fraser <simon.fraser@apple.com>
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 25 Jan 2011 06:09:06 +0000 (06:09 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 25 Jan 2011 06:09:06 +0000 (06:09 +0000)
        Reviewed by Dan Bernstein.

        Leaking CSSRuleDataList objects
        https://bugs.webkit.org/show_bug.cgi?id=53062

        Fix leaked CSSRuleDataLists added to the m_pseudoRules hash.

        * css/CSSStyleSelector.cpp:
        (WebCore::CSSRuleSet::~CSSRuleSet):

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

Source/WebCore/ChangeLog
Source/WebCore/css/CSSStyleSelector.cpp

index a85ca3a175667dcaf4c6c9f7300b4614f9485a0c..9f51f11dea82b6e30445197e257012fa9fdedeb9 100644 (file)
@@ -1,3 +1,15 @@
+2011-01-24  Simon Fraser  <simon.fraser@apple.com>
+
+        Reviewed by Dan Bernstein.
+
+        Leaking CSSRuleDataList objects
+        https://bugs.webkit.org/show_bug.cgi?id=53062
+
+        Fix leaked CSSRuleDataLists added to the m_pseudoRules hash.
+
+        * css/CSSStyleSelector.cpp:
+        (WebCore::CSSRuleSet::~CSSRuleSet):
+
 2011-01-24  Simon Fraser  <simon.fraser@apple.com>
 
         Reviewed by Eric Seidel.
index 58d1473f3d62ccbb3f01174b377c5548398df725..54ae4134d19750bbfa22a593af69789041527a5f 100644 (file)
@@ -2885,6 +2885,7 @@ CSSRuleSet::~CSSRuleSet()
 { 
     deleteAllValues(m_idRules);
     deleteAllValues(m_classRules);
+    deleteAllValues(m_pseudoRules);
     deleteAllValues(m_tagRules);
 }