diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp index 04e3f8fa9f..2dba56c391 100755 --- a/src/gpu/GrContext.cpp +++ b/src/gpu/GrContext.cpp @@ -215,6 +215,8 @@ void GrContext::freeGpuResources() { // a path renderer may be holding onto resources SkSafeSetNull(fPathRendererChain); SkSafeSetNull(fSoftwarePathRenderer); + + fResourceCache->purgeAllUnlocked(); } void GrContext::getResourceCacheUsage(int* resourceCount, size_t* resourceBytes) const {