Index: third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp |
diff --git a/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp b/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp |
index e35505224bd6aa3f9e2be6d7ca1942ece41065b3..3c060826458bc552fe5c8ef504a1419a863bcc7b 100644 |
--- a/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp |
+++ b/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp |
@@ -1210,7 +1210,7 @@ |
return nullptr; |
} |
- DOMArrayBuffer* arrayBuffer = DOMArrayBuffer::create(contents); |
+ RefPtr<DOMArrayBuffer> arrayBuffer = DOMArrayBuffer::create(contents); |
return ImageData::create( |
imageDataRect.size(), |
DOMUint8ClampedArray::create(arrayBuffer, 0, arrayBuffer->byteLength())); |