Reviewed by Adam.
authormjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 1 Feb 2007 02:14:09 +0000 (02:14 +0000)
committermjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 1 Feb 2007 02:14:09 +0000 (02:14 +0000)
        - fix sporadic crash

        * wtf/ListHashSet.h:
        (WTF::::remove): remove before deleting

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

JavaScriptCore/ChangeLog
JavaScriptCore/wtf/ListHashSet.h

index f1cd075837e6dcc507d130799a7110d6c6369e04..ddd96ba1247a3a91485e6e4a031661dbd19d9d0f 100644 (file)
@@ -1,3 +1,12 @@
+2007-01-31  Maciej Stachowiak  <mjs@apple.com>
+
+        Reviewed by Adam.
+        
+        - fix sporadic crash
+
+        * wtf/ListHashSet.h:
+        (WTF::::remove): remove before deleting
+
 2007-01-31  Maciej Stachowiak  <mjs@apple.com>
 
         Reviewed by Mark with help from Lars.
index d8ecaa5ba758fb92e7563abc588c4d47081b3f1f..96e243084ff2b6fab4a7c8b484fb338e2bb143fc 100644 (file)
@@ -368,8 +368,8 @@ namespace WTF {
         if (it == end())
             return;
 
-        unlinkAndDelete(it.node());
         m_impl.remove(it.node());
+        unlinkAndDelete(it.node());
     }
 
     template<typename T, typename U>