--- trunk/src/brains/SimSnapshotManager.cpp 2005/01/12 22:41:40 246 +++ trunk/src/brains/SimSnapshotManager.cpp 2005/02/07 19:14:26 297 @@ -53,6 +53,12 @@ SimSnapshotManager::SimSnapshotManager(SimInfo* info) currentSnapshot_ = new Snapshot(nAtoms, nRigidBodies); } +SimSnapshotManager::~SimSnapshotManager(){ + delete previousSnapshot_; + delete currentSnapshot_; + previousSnapshot_ = NULL; + currentSnapshot_ = NULL; +} bool SimSnapshotManager::advance() { *previousSnapshot_ = *currentSnapshot_;