2010-08-24 Adam Barth <abarth@webkit.org>
authorabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 24 Aug 2010 20:55:02 +0000 (20:55 +0000)
committerabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 24 Aug 2010 20:55:02 +0000 (20:55 +0000)
        Reviewed by Darin Adler.

        Remove redundant call to OwnPtr::clear
        https://bugs.webkit.org/show_bug.cgi?id=44548

        As pointed out by Darin, this call to clear is not needed.

        * editing/TextIterator.cpp:
        (WebCore::plainTextToMallocAllocatedBuffer):

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

WebCore/ChangeLog
WebCore/editing/TextIterator.cpp

index f1b9116..3906e5e 100644 (file)
@@ -1,5 +1,17 @@
 2010-08-24  Adam Barth  <abarth@webkit.org>
 
+        Reviewed by Darin Adler.
+
+        Remove redundant call to OwnPtr::clear
+        https://bugs.webkit.org/show_bug.cgi?id=44548
+
+        As pointed out by Darin, this call to clear is not needed.
+
+        * editing/TextIterator.cpp:
+        (WebCore::plainTextToMallocAllocatedBuffer):
+
+2010-08-24  Adam Barth  <abarth@webkit.org>
+
         Reviewed by Eric Seidel.
 
         HTMLTokenizer::create
index 5dc43a4..57f9a3c 100644 (file)
@@ -2267,7 +2267,6 @@ exit:
         unsigned size = textSegments->size();
         for (unsigned i = 0; i < size; ++i)
             free(textSegments->at(i).first);
-        textSegments.clear();
     }
     
     if (isDisplayString && r->ownerDocument())