diff options
author | vng <viktor.govako@gmail.com> | 2012-09-07 19:19:51 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:43:12 +0300 |
commit | e874d2adbf248115a62b28427fcfbe39c96ceea9 (patch) | |
tree | a1363eb4ea8e032fcabd93af61455e8c6726b0b6 /coding | |
parent | 3d3bfb13659f92f006a4d3b4e300997273744ee4 (diff) |
Fix memory leaks in search when exception is thrown.
Diffstat (limited to 'coding')
-rw-r--r-- | coding/trie.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/coding/trie.hpp b/coding/trie.hpp index 80ad5ce8d1..9e689f0c25 100644 --- a/coding/trie.hpp +++ b/coding/trie.hpp @@ -1,9 +1,13 @@ #pragma once -#include "../base/assert.hpp" + #include "../base/base.hpp" +#include "../base/assert.hpp" #include "../base/buffer_vector.hpp" +//#include "../base/object_tracker.hpp" + #include "../std/scoped_ptr.hpp" + namespace trie { @@ -17,6 +21,8 @@ static uint32_t const DEFAULT_CHAR = 0; template <typename ValueT, typename EdgeValueT> class Iterator { + //dbg::ObjectTracker m_tracker; + public: struct Edge { |