proper destruction for Project objects

svn path=/branches/xmlbuildsystem/; revision=12778
This commit is contained in:
Royce Mitchell III
2005-01-04 04:09:04 +00:00
parent 0b41f2cc93
commit 4b6d28c5a2
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -280,6 +280,12 @@ XMLElement* XMLParse(XMLFile& f,
return e;
}
Project::~Project()
{
for ( size_t i = 0; i < modules.size(); i++ )
delete modules[i];
}
void Project::ProcessXML ( const XMLElement& e, const string& path )
{
const XMLAttribute *att;
+1
View File
@@ -59,6 +59,7 @@ public:
std::string name;
std::vector<Module*> modules;
~Project();
void ProcessXML ( const XMLElement& e, const std::string& path );
};