| # | Line 53 | Line 53 | SimSnapshotManager::SimSnapshotManager(SimInfo* info) | |
|---|---|---|
| 53 | currentSnapshot_ = new Snapshot(nAtoms, nRigidBodies); | |
| 54 | } | |
| 55 | ||
| 56 | + | SimSnapshotManager::~SimSnapshotManager(){ | 
| 57 | + | delete previousSnapshot_; | 
| 58 | + | delete currentSnapshot_; | 
| 59 | + | previousSnapshot_ = NULL; | 
| 60 | + | currentSnapshot_ = NULL; | 
| 61 | + | } | 
| 62 | bool SimSnapshotManager::advance() { | |
| 63 | ||
| 64 | *previousSnapshot_ = *currentSnapshot_; | |
| – | Removed lines | 
| + | Added lines | 
| < | Changed lines | 
| > | Changed lines |