ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/StuntDouble.cpp
(Generate patch)

Comparing trunk/OOPSE/libmdtools/StuntDouble.cpp (file contents):
Revision 1187 by chrisfen, Sat May 22 18:16:18 2004 UTC vs.
Revision 1250 by gezelter, Fri Jun 4 21:00:20 2004 UTC

# Line 25 | Line 25 | int StuntDouble::getObjType(){
25  
26   */
27  
28 + StuntDouble::~StuntDouble(){
29 +  map<string, GenericData*>::iterator iter;
30 +
31 +  for(iter = properties.begin(); iter != properties.end(); ++iter ){
32 +    delete iter->second;
33 +    properties.erase(iter);
34 +  }
35 +    
36 + }
37 +
38   int StuntDouble::getObjType(){
39    return objType;
40   }
# Line 622 | Line 632 | void StuntDouble::removeProperty(const string& propNam
632      
633    result = properties.find(propName);
634    
635 <  if(result != properties.end())
635 >  if(result != properties.end()){
636 >    delete result->second;
637      properties.erase(result);
638 +    
639 +  }
640    
641   }
642   GenericData* StuntDouble::getProperty(const string& propName){

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines