diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-05-31 15:35:54 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-05-31 15:35:54 +0000 |
commit | 1d5aaa8ef65f312508e41ec458d4a6457f9cd39e (patch) | |
tree | 21219c95bd9b3816f1745f90f266211c4aff06fa /forth/Forth.cpp | |
parent | 5a1e79595f7d1f951fb777cb16ad730bae649c84 (diff) |
fix memory leaks
git-svn-id: http://skia.googlecode.com/svn/trunk@1448 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'forth/Forth.cpp')
-rw-r--r-- | forth/Forth.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/forth/Forth.cpp b/forth/Forth.cpp index 01ed204a4f..1df9dd81bd 100644 --- a/forth/Forth.cpp +++ b/forth/Forth.cpp @@ -277,6 +277,11 @@ ForthParser::ForthParser() : fDict(4096) { } ForthParser::~ForthParser() { + SkTDict<ForthWord*>::Iter iter(fDict); + ForthWord* word; + while (iter.next(&word)) { + delete word; + } } static const char* parse_error(const char msg[]) { |