From c0604609cef6a14ca25e794b5db4500f96e2e3b4 Mon Sep 17 00:00:00 2001 From: egdaniel Date: Thu, 19 Nov 2015 06:52:50 -0800 Subject: [PATCH] Fix leak in drawBitmapNine NOTREECHECKS=true BUG=skia: Review URL: https://codereview.chromium.org/1462893002 --- src/gpu/SkGpuDevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index ccfed2cfa7..e6712c5fed 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 texture(GrRefCachedBitmapTexture(this->context(), bitmap, params)); if (nullptr == texture) { return; }