]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - wtf/unicode/CollatorDefault.cpp
JavaScriptCore-903.tar.gz
[apple/javascriptcore.git] / wtf / unicode / CollatorDefault.cpp
index 4e05432243671f34bb00ffd0c81b3d65cd6f939e..7bde114a48bea1ab290992df116141d6ae34437e 100644 (file)
@@ -47,7 +47,7 @@ void Collator::setOrderLowerFirst(bool)
 
 PassOwnPtr<Collator> Collator::userDefault()
 {
-    return new Collator(0);
+    return adoptPtr(new Collator(0));
 }
 
 // A default implementation for platforms that lack Unicode-aware collation.