Index: Source/modules/imagebitmap/ImageBitmapFactories.cpp |
diff --git a/Source/modules/imagebitmap/ImageBitmapFactories.cpp b/Source/modules/imagebitmap/ImageBitmapFactories.cpp |
index 3e6429ffaed1745d1a38c630e9490dc2729c6e53..42411e66fe4670e475081e125f59145c066205dd 100644 |
--- a/Source/modules/imagebitmap/ImageBitmapFactories.cpp |
+++ b/Source/modules/imagebitmap/ImageBitmapFactories.cpp |
@@ -301,7 +301,7 @@ void ImageBitmapFactories::ImageBitmapLoader::didFinishLoading() |
RefPtr<SharedBuffer> sharedBuffer = SharedBuffer::create((char*)m_loader.arrayBufferResult()->data(), m_loader.arrayBufferResult()->byteLength()); |
OwnPtr<ImageSource> source = adoptPtr(new ImageSource()); |
- source->setData(sharedBuffer.get(), true); |
+ source->setData(*sharedBuffer, true); |
RefPtr<NativeImageSkia> imageSkia = source->createFrameAtIndex(0); |
if (!imageSkia) { |
rejectPromise(); |