Fix leak in drawBitmapNine

NOTREECHECKS=true

BUG=skia:

Review URL: https://codereview.chromium.org/1462893002
This commit is contained in:
egdaniel 2015-11-19 06:52:50 -08:00 committed by Commit bot
parent fbe1c110ac
commit c0604609ce

View File

@ -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;
}