Fix small leak in Collator
[WebKit-https.git] / Source / WTF / ChangeLog
index 423859683406d44caf7e0947fc559e7529b73765..c5ad4ad8fa69d1bbc8a64cf84754024523722249 100644 (file)
@@ -1,3 +1,15 @@
+2015-01-28  Darin Adler  <darin@apple.com>
+
+        Fix small leak in Collator
+        https://bugs.webkit.org/show_bug.cgi?id=140990
+
+        Reviewed by Andreas Kling.
+
+        * wtf/unicode/icu/CollatorICU.cpp:
+        (WTF::Collator::Collator): Use fastStrDup instead of strdup.
+        (WTF::Collator::~Collator): Use fastFree on the collator locale that we
+        are abandoning. The old code instead just called free on a null pointer.
+
 2015-01-27  Geoffrey Garen  <ggaren@apple.com>
 
         Removed WTF_MALLOC_VALIDATION