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