2011-02-06 Ryosuke Niwa <rniwa@webkit.org>
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 7 Feb 2011 05:47:24 +0000 (05:47 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 7 Feb 2011 05:47:24 +0000 (05:47 +0000)
        Another unreviewed Chromium build fix.

        * DumpRenderTree/chromium/LayoutTestController.cpp:
        (LayoutTestController::pathToLocalResource):

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

Tools/ChangeLog
Tools/DumpRenderTree/chromium/LayoutTestController.cpp

index eac7dd7fbd9131c5d07ac5f281eeda03e8c38d72..229339ffeff6dbb3f1af4fc4adcc8bb79ec88cd4 100644 (file)
@@ -1,3 +1,10 @@
+2011-02-06  Ryosuke Niwa  <rniwa@webkit.org>
+
+        Another unreviewed Chromium build fix.
+
+        * DumpRenderTree/chromium/LayoutTestController.cpp:
+        (LayoutTestController::pathToLocalResource):
+
 2011-02-06  Ryosuke Niwa  <rniwa@webkit.org>
 
         Unreviewed Chromium build fix.
index 18a19c8da5da63a91c05580ec809000154f0b51e..cc4dfc5d5ccea47c4ae4dbd2357a0ec9ade00bcd 100644 (file)
@@ -803,7 +803,7 @@ void LayoutTestController::pathToLocalResource(const CppArgumentList& arguments,
         DWORD tempLength = ::GetTempPathW(bufferSize, tempPath.get());
         if (tempLength + url.length() - tempPrefixLength + 1 > bufferSize) {
             bufferSize = tempLength + url.length() - tempPrefixLength + 1;
-            tempPath.set(new WCHAR[bufferSize]);
+            tempPath = adoptArrayPtr(new WCHAR[bufferSize]);
             tempLength = GetTempPathW(bufferSize, tempPath.get());
             ASSERT(tempLength < bufferSize);
         }