--- trunk/src/io/Globals.cpp 2005/11/16 21:37:45 748 +++ trunk/src/io/Globals.cpp 2005/11/16 23:10:02 749 @@ -52,6 +52,7 @@ #include "io/ParamConstraint.hpp" +using namespace oopse; Globals::Globals(){ @@ -129,6 +130,20 @@ Globals::Globals(){ } +Globals::~Globals(){ + int i; + if( components != NULL ){ + for( i=0; i< getNComponents(); i++ ) delete components[i]; + delete[] components; + } + + if( zConstraints != NULL ){ + for( i=0; i< getNZconstraints(); i++ ) delete zConstraints[i]; + delete[] zConstraints; + } + +} + int Globals::globalAssign( event* the_event ){ char errorMessage[65535]; int key;