aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
diff options
context:
space:
mode:
authorGravatar egdaniel <egdaniel@google.com>2015-11-19 06:52:50 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-11-19 06:52:50 -0800
commitc0604609cef6a14ca25e794b5db4500f96e2e3b4 (patch)
tree760c6f7291fbeabdbb3ec31f841d967f04fddcdf /src/gpu
parentfbe1c110acf218a7b2b5d378a752dc1845816d6e (diff)
Fix leak in drawBitmapNine
NOTREECHECKS=true BUG=skia: Review URL: https://codereview.chromium.org/1462893002
Diffstat (limited to 'src/gpu')
-rw-r--r--src/gpu/SkGpuDevice.cpp2
1 files changed, 1 insertions, 1 deletions
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<GrTexture> texture(GrRefCachedBitmapTexture(this->context(), bitmap, params));
if (nullptr == texture) {
return;
}