commit | 1d5aaa8ef65f312508e41ec458d4a6457f9cd39e | [log] [tgz] |
---|---|---|
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue May 31 15:35:54 2011 +0000 |
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue May 31 15:35:54 2011 +0000 |
tree | 21219c95bd9b3816f1745f90f266211c4aff06fa | |
parent | 5a1e79595f7d1f951fb777cb16ad730bae649c84 [diff] [blame] |
fix memory leaks git-svn-id: http://skia.googlecode.com/svn/trunk@1448 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/forth/Forth.cpp b/forth/Forth.cpp index 01ed204..1df9dd8 100644 --- a/forth/Forth.cpp +++ b/forth/Forth.cpp
@@ -277,6 +277,11 @@ } ForthParser::~ForthParser() { + SkTDict<ForthWord*>::Iter iter(fDict); + ForthWord* word; + while (iter.next(&word)) { + delete word; + } } static const char* parse_error(const char msg[]) {