proper destruction for Project objects
authorRoyce Mitchell III <royce3@ev1.net>
Tue, 4 Jan 2005 04:09:04 +0000 (04:09 +0000)
committerRoyce Mitchell III <royce3@ev1.net>
Tue, 4 Jan 2005 04:09:04 +0000 (04:09 +0000)
svn path=/branches/xmlbuildsystem/; revision=12778

reactos/tools/rbuild/rbuild.cpp
reactos/tools/rbuild/rbuild.h

index f73488e..49a67c6 100644 (file)
@@ -280,6 +280,12 @@ XMLElement* XMLParse(XMLFile& f,
        return e;\r
 }\r
 \r
+Project::~Project()\r
+{\r
+       for ( size_t i = 0; i < modules.size(); i++ )\r
+               delete modules[i];\r
+}\r
+\r
 void Project::ProcessXML ( const XMLElement& e, const string& path )\r
 {\r
        const XMLAttribute *att;\r
index d027b4e..1b1870e 100644 (file)
@@ -59,6 +59,7 @@ public:
        std::string name;\r
        std::vector<Module*> modules;\r
 \r
+       ~Project();\r
        void ProcessXML ( const XMLElement& e, const std::string& path );\r
 };\r
 \r