Index: src/gpu/GrAAHairLinePathRenderer.cpp |
diff --git a/src/gpu/GrAAHairLinePathRenderer.cpp b/src/gpu/GrAAHairLinePathRenderer.cpp |
index d2113cacc2d49f451b97052cf5770aef3d294660..cbce6aa4c32248075d5671d4502d52ad9b8a0cc5 100644 |
--- a/src/gpu/GrAAHairLinePathRenderer.cpp |
+++ b/src/gpu/GrAAHairLinePathRenderer.cpp |
@@ -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; |