From 0c33c2e3dab506856ee5d7ce6cb6e17eaf6b0251 Mon Sep 17 00:00:00 2001 From: Bernard Normier Date: Tue, 30 Oct 2007 18:21:16 -0400 Subject: Fixed bug #2528 --- cpp/src/Freeze/MapI.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'cpp') 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(); } -- cgit v1.2.3