aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-07-24 17:24:21 +0000
committerGravatar tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-07-24 17:24:21 +0000
commit1bb4be2384c48c2c8dfa4c855095792886b1b3a0 (patch)
treeb15d7c6eefc3bc34b5cb5aba5423693513c0a982
parent2a4a49e79f76412cc9db55e1f97e76e60bdca451 (diff)
Fix TableColorFilter memory leak.
-rw-r--r--src/effects/SkTableColorFilter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/effects/SkTableColorFilter.cpp b/src/effects/SkTableColorFilter.cpp
index fb9aaa6ef4..d6cbb5e2d5 100644
--- a/src/effects/SkTableColorFilter.cpp
+++ b/src/effects/SkTableColorFilter.cpp
@@ -31,6 +31,10 @@ public:
}
}
+ virtual ~SkTable_ColorFilter() {
+ SkDELETE(fBitmap);
+ }
+
virtual bool asComponentTable(SkBitmap* table) SK_OVERRIDE;
virtual void filterSpan(const SkPMColor src[], int count,