[ros-diffs] [royce] 12778: proper destruction for Project objects

royce at svn.reactos.com royce at svn.reactos.com
Tue Jan 4 05:09:06 CET 2005


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
);
 };
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050104/fa0929fe/attachment.html


More information about the Ros-diffs mailing list