Index: src/gpu/SkGpuDevice.cpp |
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp |
index ccfed2cfa7ec9f27581492325afeac6bacc3d19f..e6712c5fed7845e8123c9d7b4da1324106d28591 100644 |
--- a/src/gpu/SkGpuDevice.cpp |
+++ b/src/gpu/SkGpuDevice.cpp |
@@ -1513,7 +1513,7 @@ void SkGpuDevice::drawBitmapNine(const SkDraw& draw, const SkBitmap& bitmap, con |
GrTextureParams params = GrTextureParams::ClampNoFilter(); |
- GrTexture* texture(GrRefCachedBitmapTexture(this->context(), bitmap, params)); |
+ SkAutoTUnref<GrTexture> texture(GrRefCachedBitmapTexture(this->context(), bitmap, params)); |
if (nullptr == texture) { |
return; |
} |