Index: src/gpu/GrClipMaskManager.cpp |
diff --git a/src/gpu/GrClipMaskManager.cpp b/src/gpu/GrClipMaskManager.cpp |
index ff95eeaac33439b7eef438e6caef5e6a7167e544..fd741b9a2bef61ce6f11804e57eedd30fcb106ae 100644 |
--- a/src/gpu/GrClipMaskManager.cpp |
+++ b/src/gpu/GrClipMaskManager.cpp |
@@ -683,7 +683,7 @@ bool GrClipMaskManager::CreateStencilClipMask(GrContext* context, |
if (!clipPath.isEmpty()) { |
if (canRenderDirectToStencil) { |
GrPaint paint; |
- paint.setXPFactory(GrDisableColorXPFactory::Create()); |
+ SkSafeUnref(paint.setXPFactory(GrDisableColorXPFactory::Create())); |
paint.setAntiAlias(element->isAA()); |
GrPathRenderer::DrawPathArgs args; |
@@ -724,7 +724,7 @@ bool GrClipMaskManager::CreateStencilClipMask(GrContext* context, |
viewMatrix, element->getRect(), element->isAA(), *pass); |
} else { |
GrPaint paint; |
- paint.setXPFactory(GrDisableColorXPFactory::Create()); |
+ SkSafeUnref(paint.setXPFactory(GrDisableColorXPFactory::Create())); |
paint.setAntiAlias(element->isAA()); |
GrPathRenderer::DrawPathArgs args; |