Fix leak in drawBitmapNine
NOTREECHECKS=true BUG=skia: Review URL: https://codereview.chromium.org/1462893002
This commit is contained in:
parent
fbe1c110ac
commit
c0604609ce
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user