Index: src/core/SkLightingShader.cpp |
diff --git a/src/core/SkLightingShader.cpp b/src/core/SkLightingShader.cpp |
index e35ede3a177ddb7685df58e503ef7271d2e37b0a..e8280b1267439e5405e835adb0e279742d00c12a 100644 |
--- a/src/core/SkLightingShader.cpp |
+++ b/src/core/SkLightingShader.cpp |
@@ -58,8 +58,8 @@ public: |
class LightingShaderContext : public SkShader::Context { |
public: |
- // The context takes ownership of the states. It will call their destructors |
- // but will NOT free the memory. |
+ // The context takes ownership of the context and provider. It will call their destructors |
+ // and then indirectly free their memory by calling free() on heapAllocated |
LightingShaderContext(const SkLightingShaderImpl&, const ContextRec&, |
SkShader::Context* diffuseContext, SkNormalSource::Provider*, |
void* heapAllocated); |