| Index: skia/ext/bitmap_platform_device_android.cc
|
| diff --git a/skia/ext/bitmap_platform_device_android.cc b/skia/ext/bitmap_platform_device_android.cc
|
| index c12abd6d74da1d3bd1c0130e0eb7d49978d376c1..3a043a8b45ffcd4efacc68b84e6be5f6485a0e07 100644
|
| --- a/skia/ext/bitmap_platform_device_android.cc
|
| +++ b/skia/ext/bitmap_platform_device_android.cc
|
| @@ -76,7 +76,8 @@ void BitmapPlatformDevice::DrawToNativeContext(
|
|
|
| SkCanvas* CreatePlatformCanvas(int width, int height, bool is_opaque,
|
| uint8_t* data, OnFailureType failureType) {
|
| - SkDevice* dev = BitmapPlatformDevice::Create(width, height, is_opaque, data);
|
| + skia::RefPtr<SkDevice> dev = skia::AdoptRef(
|
| + BitmapPlatformDevice::Create(width, height, is_opaque, data));
|
| return CreateCanvas(dev, failureType);
|
| }
|
|
|
|
|