Index: src/gpu/GrDrawingManager.cpp |
diff --git a/src/gpu/GrDrawingManager.cpp b/src/gpu/GrDrawingManager.cpp |
index 0a487daf4146fadb7f7869f8144454d702188ec5..4483a159346f0413f422e155470f0d709b5967e3 100644 |
--- a/src/gpu/GrDrawingManager.cpp |
+++ b/src/gpu/GrDrawingManager.cpp |
@@ -31,7 +31,8 @@ void GrDrawingManager::cleanup() { |
fTextContexts[i][1] = nullptr; |
} |
- SkSafeSetNull(fPathRendererChain); |
+ delete fPathRendererChain; |
+ fPathRendererChain = nullptr; |
SkSafeSetNull(fSoftwarePathRenderer); |
} |
@@ -46,7 +47,8 @@ void GrDrawingManager::abandon() { |
void GrDrawingManager::freeGpuResources() { |
// a path renderer may be holding onto resources |
- SkSafeSetNull(fPathRendererChain); |
+ delete fPathRendererChain; |
+ fPathRendererChain = nullptr; |
SkSafeSetNull(fSoftwarePathRenderer); |
} |