diff options
Diffstat (limited to 'Tools/DumpRenderTree/chromium/ImageDiff.cpp')
-rw-r--r-- | Tools/DumpRenderTree/chromium/ImageDiff.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/DumpRenderTree/chromium/ImageDiff.cpp b/Tools/DumpRenderTree/chromium/ImageDiff.cpp index f2875dd..d676430 100644 --- a/Tools/DumpRenderTree/chromium/ImageDiff.cpp +++ b/Tools/DumpRenderTree/chromium/ImageDiff.cpp @@ -88,7 +88,7 @@ public: if (!byteLength) return false; - OwnArrayPtr<unsigned char> source(new unsigned char[byteLength]); + OwnArrayPtr<unsigned char> source = adoptArrayPtr(new unsigned char[byteLength]); if (fread(source.get(), 1, byteLength, stdin) != byteLength) return false; |