fixing GrBatch leak
TBR= BUG=skia: Review URL: https://codereview.chromium.org/886393008
This commit is contained in:
parent
7bc18b75ee
commit
d5163e2c44
@ -1058,7 +1058,8 @@ bool GrAAHairLinePathRenderer::onDrawPath(GrDrawTarget* target,
|
||||
SkDEBUGCODE(geometry.fDevBounds = devRect;)
|
||||
geometry.fDevClipBounds = devClipBounds;
|
||||
|
||||
GrBatch* batch = AAHairlineBatch::Create(geometry, fLinesIndexBuffer, fQuadsIndexBuffer);
|
||||
SkAutoTUnref<GrBatch> batch(AAHairlineBatch::Create(geometry, fLinesIndexBuffer,
|
||||
fQuadsIndexBuffer));
|
||||
target->drawBatch(pipelineBuilder, batch, &devRect);
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user