diff options
author | tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-07-24 17:24:21 +0000 |
---|---|---|
committer | tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-07-24 17:24:21 +0000 |
commit | 1bb4be2384c48c2c8dfa4c855095792886b1b3a0 (patch) | |
tree | b15d7c6eefc3bc34b5cb5aba5423693513c0a982 /src/effects | |
parent | 2a4a49e79f76412cc9db55e1f97e76e60bdca451 (diff) |
Fix TableColorFilter memory leak.
http://codereview.appspot.com/6437045/
git-svn-id: http://skia.googlecode.com/svn/trunk@4733 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/effects')
-rw-r--r-- | src/effects/SkTableColorFilter.cpp | 4 |
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, |