Index: src/gpu/GrTessellatingPathRenderer.cpp |
diff --git a/src/gpu/GrTessellatingPathRenderer.cpp b/src/gpu/GrTessellatingPathRenderer.cpp |
index 5d83dd7dde9fb7c62af3864fead67c38d08dcaed..62b8f0ee488308787253fca0998051dfaefe703a 100644 |
--- a/src/gpu/GrTessellatingPathRenderer.cpp |
+++ b/src/gpu/GrTessellatingPathRenderer.cpp |
@@ -1489,7 +1489,8 @@ public: |
TessInfo info; |
info.fTolerance = isLinear ? 0 : tol; |
info.fCount = actualCount; |
- key->setCustomData(SkData::NewWithCopy(&info, sizeof(info))); |
+ SkAutoTUnref<SkData> data(SkData::NewWithCopy(&info, sizeof(info))); |
+ key->setCustomData(data.get()); |
resourceProvider->assignUniqueKeyToResource(*key, vertexBuffer.get()); |
SkPathPriv::AddGenIDChangeListener(fPath, SkNEW(PathInvalidator(*key))); |
} |