2008-03-07 Dan Bernstein <mitz@apple.com>
authorslewis@apple.com <slewis@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 8 Mar 2008 06:19:04 +0000 (06:19 +0000)
committerslewis@apple.com <slewis@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 8 Mar 2008 06:19:04 +0000 (06:19 +0000)
        Reviewed by Stephanie.

        - try to fix leaks seen on Tiger after r30840

        * css/CSSStyleSelector.cpp:
        (WebCore::CSSStyleSelector::~CSSStyleSelector): Use the default operator
        delete, rather than arena delete, to deallocate the root default style.

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

WebCore/ChangeLog
WebCore/css/CSSStyleSelector.cpp

index 06802d2..2289d04 100644 (file)
@@ -1,3 +1,13 @@
+2008-03-07  Dan Bernstein  <mitz@apple.com>
+
+        Reviewed by Stephanie.
+
+        - try to fix leaks seen on Tiger after r30840
+
+        * css/CSSStyleSelector.cpp:
+        (WebCore::CSSStyleSelector::~CSSStyleSelector): Use the default operator
+        delete, rather than arena delete, to deallocate the root default style.
+
 2008-03-07  Pierre-Luc Beaudoin  <pierre-luc.beaudoin@collabora.co.uk>
 
         Reviewed by Alp Toker.
index bf4fee3..4d836c7 100644 (file)
@@ -315,7 +315,7 @@ void CSSStyleSelector::init()
 CSSStyleSelector::~CSSStyleSelector()
 {
     delete m_medium;
-    delete m_rootDefaultStyle;
+    ::delete m_rootDefaultStyle;
     delete m_authorStyle;
     delete m_userStyle;
 }