From: bungeman Date: Fri, 3 Jun 2016 21:25:05 +0000 (-0700) Subject: Unref GrXPFactory. X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~129^2~306 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ab0bf2ef82cdfc92d6dbef2d9949be24a7b88533;p=platform%2Fupstream%2FlibSkiaSharp.git Unref GrXPFactory. Not releasing the reference was caught by asan in the Chromium roll. This fixes "Make GrClipMaskManager stateless and push GrPipelineBuilder construction downstack". Review-Url: https://codereview.chromium.org/2037193002 --- diff --git a/src/gpu/GrDrawContext.cpp b/src/gpu/GrDrawContext.cpp index 581bf08..280e632 100644 --- a/src/gpu/GrDrawContext.cpp +++ b/src/gpu/GrDrawContext.cpp @@ -409,7 +409,7 @@ void GrDrawContextPriv::stencilRect(const GrFixedClip& clip, GrPaint paint; paint.setAntiAlias(doAA); - paint.setXPFactory(GrDisableColorXPFactory::Create()); + SkSafeUnref(paint.setXPFactory(GrDisableColorXPFactory::Create())); SkAutoTUnref batch(fDrawContext->getFillRectBatch(paint, viewMatrix, rect)); SkASSERT(batch);