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

Comparing trunk/OOPSE-2.0/src/io/Globals.cpp (file contents):
Revision 2447 by chuckv, Wed Nov 16 21:37:45 2005 UTC vs.
Revision 2448 by tim, Wed Nov 16 23:10:02 2005 UTC

# Line 52 | Line 52
52  
53   #include "io/ParamConstraint.hpp"
54  
55 + using namespace oopse;
56  
57   Globals::Globals(){
58  
# Line 129 | Line 130 | int Globals::globalAssign( event* the_event ){
130    
131   }
132  
133 + Globals::~Globals(){
134 +  int i;
135 +  if( components != NULL ){
136 +    for( i=0; i< getNComponents(); i++ ) delete components[i];
137 +    delete[] components;
138 +  }
139 +  
140 +  if( zConstraints != NULL ){
141 +    for( i=0; i< getNZconstraints(); i++ ) delete zConstraints[i];
142 +    delete[] zConstraints;
143 +  }
144 +  
145 + }
146 +
147   int Globals::globalAssign( event* the_event ){
148    char errorMessage[65535];
149    int key;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines