diff options
author | Tim King <taking@cs.nyu.edu> | 2010-03-23 19:41:49 +0000 |
---|---|---|
committer | Tim King <taking@cs.nyu.edu> | 2010-03-23 19:41:49 +0000 |
commit | e11bce2790fa9e517e08ae5d3c477da651db3630 (patch) | |
tree | ffc4bb7cab3a6887c83fd3817c4cd79503d53a2c /src/context/cdmap.h | |
parent | 9576517676138a8ca2887a967f1b056662ef6754 (diff) |
Fixed some memory cleanup and destruction issues with ContextObj, ECData, CDList, and CDMap. Added the d_underTheShotgun field to NodeManager to keep track of which NodeValue is currently being deleted. If a Node or TNode has this node value, it can always be deleted. This avoids the need for introducing SoftNodes. Currently passes Debug and Production make check
Diffstat (limited to 'src/context/cdmap.h')
-rw-r--r-- | src/context/cdmap.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/context/cdmap.h b/src/context/cdmap.h index 460f917ff..1dc44d087 100644 --- a/src/context/cdmap.h +++ b/src/context/cdmap.h @@ -201,13 +201,13 @@ public: ~CDMap() throw(AssertionException) { // Delete all the elements and clear the map - for(typename table_type::iterator - i = d_map.begin(), iend = d_map.end(); i != iend; ++i) { - /* + /*for(typename table_type::iterator + i = d_map.begin(), iend = d_map.end(); i != iend; ++i) { + delete (*i).second; free((*i).second); - */ - } + + }*/ d_map.clear(); emptyTrash(); } |