mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 04:09:33 -05:00
added destructor to loaded commands
This commit is contained in:
@@ -28,6 +28,9 @@ public:
|
||||
this->info.CAPI = &cmStaticCAPI;
|
||||
}
|
||||
|
||||
///! clean up any memory allocated by the plugin
|
||||
~cmLoadedCommand();
|
||||
|
||||
/**
|
||||
* This is a virtual constructor for the command.
|
||||
*/
|
||||
@@ -139,7 +142,14 @@ void cmLoadedCommand::FinalPass()
|
||||
{
|
||||
this->info.FinalPass((void *)&this->info,(void *)this->m_Makefile);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
cmLoadedCommand::~cmLoadedCommand()
|
||||
{
|
||||
if (this->info.Destructor)
|
||||
{
|
||||
this->info.Destructor((void *)&this->info);
|
||||
}
|
||||
}
|
||||
|
||||
// cmLoadCommandCommand
|
||||
|
||||
Reference in New Issue
Block a user