summaryrefslogtreecommitdiff
path: root/cpp/src/Freeze/MapI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Freeze/MapI.cpp')
-rw-r--r--cpp/src/Freeze/MapI.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/cpp/src/Freeze/MapI.cpp b/cpp/src/Freeze/MapI.cpp
index ff8ffb916ee..390b4253ccb 100644
--- a/cpp/src/Freeze/MapI.cpp
+++ b/cpp/src/Freeze/MapI.cpp
@@ -1317,14 +1317,11 @@ Freeze::MapHelperI::close()
_connection->unregisterMap(this);
}
_db = 0;
-
- for(IndexMap::iterator p = _indices.begin(); p != _indices.end(); ++p)
- {
- MapIndexBasePtr& indexBase = p->second;
- indexBase->_impl = 0;
- indexBase->_map = 0;
- }
+ //
+ // We can't clear the indexBase as MapIndexI is using
+ // the first map's indexBase objects
+ //
_indices.clear();
}