Index: src/gpu/gl/GrGLPath.cpp |
diff --git a/src/gpu/gl/GrGLPath.cpp b/src/gpu/gl/GrGLPath.cpp |
index 80c6356cdd88bc10e6cb3af7a820ee5882aaca15..0b35a7007f6a54fc527dbbcb4f615adafe8d3036 100644 |
--- a/src/gpu/gl/GrGLPath.cpp |
+++ b/src/gpu/gl/GrGLPath.cpp |
@@ -214,7 +214,7 @@ GrGLPath::GrGLPath(GrGLGpu* gpu, const SkPath& origSkPath, const GrStrokeInfo& o |
} |
void GrGLPath::onRelease() { |
- if (0 != fPathID && !this->isWrapped()) { |
+ if (0 != fPathID && this->shouldFreeResources()) { |
static_cast<GrGLGpu*>(this->getGpu())->glPathRendering()->deletePaths(fPathID, 1); |
fPathID = 0; |
} |