Fix another stringImpl leak.
authorslewis@apple.com <slewis@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 5 Jan 2008 00:15:29 +0000 (00:15 +0000)
committerslewis@apple.com <slewis@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 5 Jan 2008 00:15:29 +0000 (00:15 +0000)
        * platform/text/StringImpl.cpp: remove an extra allocation
        (WebCore::StringImpl::StringImpl):

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

WebCore/ChangeLog
WebCore/platform/text/StringImpl.cpp

index a34ecf6..2c05fff 100644 (file)
@@ -1,3 +1,14 @@
+2008-01-04  Stephanie  <slewis@apple.com>
+
+        Reviewed by Oliver.
+
+        WARNING: NO TEST CASES ADDED OR CHANGED
+
+        Fix another stringImpl leak.
+
+        * platform/text/StringImpl.cpp: remove an extra allocation
+        (WebCore::StringImpl::StringImpl):
+
 2008-01-04  Alice Liu  <alice.liu@apple.com>
 
         Reviewed by Mitz.
index 8cae571..189f054 100644 (file)
@@ -96,7 +96,6 @@ StringImpl::StringImpl(const StringImpl& str, WithTerminatingNullCharacter)
 
 StringImpl::StringImpl(const char* str, unsigned len)
     : m_length(len)
-    , m_data(newUCharVector(len))
     , m_hash(0)
     , m_inTable(false)
     , m_hasTerminatingNullCharacter(false)