ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-3.0/src/brains/SimSnapshotManager.cpp
(Generate patch)

Comparing trunk/OOPSE-3.0/src/brains/SimSnapshotManager.cpp (file contents):
Revision 1930 by gezelter, Wed Jan 12 22:41:40 2005 UTC vs.
Revision 1981 by tim, Mon Feb 7 19:14:26 2005 UTC

# Line 53 | Line 53 | bool SimSnapshotManager::advance() {
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_;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines