aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/core/SkTemplates.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/core/SkTemplates.h b/include/core/SkTemplates.h
index ac67f92c0c..e49cc47ea9 100644
--- a/include/core/SkTemplates.h
+++ b/include/core/SkTemplates.h
@@ -323,7 +323,7 @@ public:
/** Resize the memory area pointed to by the current ptr without preserving contents. */
void reset(size_t count) {
sk_free(fPtr);
- fPtr = fPtr = (T*)sk_malloc_flags(count * sizeof(T), SK_MALLOC_THROW | SK_MALLOC_TEMP);
+ fPtr = (T*)sk_malloc_flags(count * sizeof(T), SK_MALLOC_THROW | SK_MALLOC_TEMP);
}
T* get() const { return fPtr; }