proper destruction for Project objects
Modified: branches/xmlbuildsystem/reactos/tools/rbuild/rbuild.cpp
Modified: branches/xmlbuildsystem/reactos/tools/rbuild/rbuild.h

Modified: branches/xmlbuildsystem/reactos/tools/rbuild/rbuild.cpp
--- branches/xmlbuildsystem/reactos/tools/rbuild/rbuild.cpp	2005-01-04 04:04:32 UTC (rev 12777)
+++ branches/xmlbuildsystem/reactos/tools/rbuild/rbuild.cpp	2005-01-04 04:09:04 UTC (rev 12778)
@@ -280,6 +280,12 @@
 	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;

Modified: branches/xmlbuildsystem/reactos/tools/rbuild/rbuild.h
--- branches/xmlbuildsystem/reactos/tools/rbuild/rbuild.h	2005-01-04 04:04:32 UTC (rev 12777)
+++ branches/xmlbuildsystem/reactos/tools/rbuild/rbuild.h	2005-01-04 04:09:04 UTC (rev 12778)
@@ -59,6 +59,7 @@
 	std::string name;
 	std::vector<Module*> modules;
 
+	~Project();
 	void ProcessXML ( const XMLElement& e, const std::string& path );
 };