From 1bb4be2384c48c2c8dfa4c855095792886b1b3a0 Mon Sep 17 00:00:00 2001 From: "tomhudson@google.com" Date: Tue, 24 Jul 2012 17:24:21 +0000 Subject: Fix TableColorFilter memory leak. http://codereview.appspot.com/6437045/ git-svn-id: http://skia.googlecode.com/svn/trunk@4733 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/effects/SkTableColorFilter.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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, -- cgit v1.2.3