summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/third_party/hunspell/src/hunspell/hashmgr.cxx5
-rw-r--r--chrome/third_party/hunspell/src/hunspell/hashmgr.hxx1
2 files changed, 6 insertions, 0 deletions
diff --git a/chrome/third_party/hunspell/src/hunspell/hashmgr.cxx b/chrome/third_party/hunspell/src/hunspell/hashmgr.cxx
index f1c1355..51c054f 100644
--- a/chrome/third_party/hunspell/src/hunspell/hashmgr.cxx
+++ b/chrome/third_party/hunspell/src/hunspell/hashmgr.cxx
@@ -121,6 +121,11 @@ HashMgr::~HashMgr()
#ifdef HUNSPELL_CHROME_CLIENT
EmptyHentryCache();
+ STLDeleteValues(&custom_word_to_hentry_map_);
+ for (std::vector<std::string*>::iterator it = pointer_to_strings_.begin();
+ it != pointer_to_strings_.end(); ++it) {
+ delete *it;
+ }
#endif
}
diff --git a/chrome/third_party/hunspell/src/hunspell/hashmgr.hxx b/chrome/third_party/hunspell/src/hunspell/hashmgr.hxx
index f247f80..4f60646 100644
--- a/chrome/third_party/hunspell/src/hunspell/hashmgr.hxx
+++ b/chrome/third_party/hunspell/src/hunspell/hashmgr.hxx
@@ -5,6 +5,7 @@
#include "htypes.hxx"
#ifdef HUNSPELL_CHROME_CLIENT
+#include "chrome/common/stl_util-inl.h"
#include "chrome/third_party/hunspell/google/bdict_reader.h"
#include "base/string_piece.h"
#include <string>