fixing GrBatch leak

TBR=
BUG=skia:

Review URL: https://codereview.chromium.org/886393008
This commit is contained in:
joshualitt 2015-02-03 17:40:16 -08:00 committed by Commit bot
parent 7bc18b75ee
commit d5163e2c44

View File

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