Index: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
index 4102488ffba81f2b7832c45206ccff65ed6b590e..dd0ca30a4e48da2f66b333b8bed98e1d3bf1eee6 100644 |
--- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
+++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
@@ -1251,7 +1251,7 @@ |
WTF::ArrayBufferContents contents; |
if (!drawingBuffer()->paintRenderingResultsToImageData(width, height, sourceBuffer, contents)) |
return nullptr; |
- DOMArrayBuffer* imageDataPixels = DOMArrayBuffer::create(contents); |
+ RefPtr<DOMArrayBuffer> imageDataPixels = DOMArrayBuffer::create(contents); |
return ImageData::create( |
IntSize(width, height), |