summaryrefslogtreecommitdiff
path: root/cpp/src/Freeze/MapI.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2007-10-30 18:21:16 -0400
committerBernard Normier <bernard@zeroc.com>2007-10-30 18:21:16 -0400
commit0c33c2e3dab506856ee5d7ce6cb6e17eaf6b0251 (patch)
tree5ca30d581e2a2f22fdbe728b85896c66a1fbb36f /cpp/src/Freeze/MapI.cpp
parentVarious service / service installer improvements (diff)
downloadice-0c33c2e3dab506856ee5d7ce6cb6e17eaf6b0251.tar.bz2
ice-0c33c2e3dab506856ee5d7ce6cb6e17eaf6b0251.tar.xz
ice-0c33c2e3dab506856ee5d7ce6cb6e17eaf6b0251.zip
Fixed bug #2528
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();
}