mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 12:04:01 +00:00
fix some more memory leaks
svn path=/trunk/; revision=32533
This commit is contained in:
parent
039ca2f9c2
commit
4e921b8071
6 changed files with 38 additions and 0 deletions
|
@ -34,6 +34,14 @@ CDFile::ReplaceVariable ( const string& name,
|
|||
return path;
|
||||
}
|
||||
|
||||
CDFile::~CDFile ()
|
||||
{
|
||||
if ( source )
|
||||
delete target;
|
||||
if ( source )
|
||||
delete target;
|
||||
}
|
||||
|
||||
CDFile::CDFile ( const Project& project,
|
||||
const XMLElement& cdfileNode,
|
||||
const string& path )
|
||||
|
|
|
@ -58,6 +58,9 @@ CompilationUnit::~CompilationUnit ()
|
|||
size_t i;
|
||||
for ( i = 0; i < files.size (); i++ )
|
||||
delete files[i];
|
||||
|
||||
if ( default_name )
|
||||
delete default_name;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -53,6 +53,8 @@ Include::Include ( const Project& project,
|
|||
|
||||
Include::~Include()
|
||||
{
|
||||
if ( directory )
|
||||
delete directory;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -22,6 +22,15 @@
|
|||
|
||||
using std::string;
|
||||
|
||||
InstallFile::~InstallFile()
|
||||
{
|
||||
if ( source )
|
||||
delete source;
|
||||
|
||||
if ( target )
|
||||
delete source;
|
||||
}
|
||||
|
||||
InstallFile::InstallFile ( const Project& project,
|
||||
const XMLElement& installfileNode,
|
||||
const string& path )
|
||||
|
|
|
@ -490,6 +490,12 @@ Module::~Module ()
|
|||
delete install;
|
||||
if ( output )
|
||||
delete output;
|
||||
if ( metadata )
|
||||
delete metadata;
|
||||
if ( bootstrap )
|
||||
delete bootstrap;
|
||||
if ( importLibrary )
|
||||
delete importLibrary;
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -1590,6 +1596,13 @@ Metadata::Metadata ( const XMLElement& _node,
|
|||
}
|
||||
|
||||
|
||||
ImportLibrary::~ImportLibrary ()
|
||||
{
|
||||
if ( source )
|
||||
delete source;
|
||||
}
|
||||
|
||||
|
||||
ImportLibrary::ImportLibrary ( const Project& project,
|
||||
const XMLElement& node,
|
||||
const Module& module )
|
||||
|
|
|
@ -569,6 +569,7 @@ public:
|
|||
ImportLibrary ( const Project& project,
|
||||
const XMLElement& node,
|
||||
const Module& module );
|
||||
~ImportLibrary ();
|
||||
};
|
||||
|
||||
|
||||
|
@ -816,6 +817,7 @@ public:
|
|||
CDFile ( const Project& project,
|
||||
const XMLElement& bootstrapNode,
|
||||
const std::string& path );
|
||||
~CDFile ();
|
||||
private:
|
||||
static std::string ReplaceVariable ( const std::string& name,
|
||||
const std::string& value,
|
||||
|
@ -832,6 +834,7 @@ public:
|
|||
InstallFile ( const Project& project,
|
||||
const XMLElement& bootstrapNode,
|
||||
const std::string& path );
|
||||
~InstallFile ();
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue