Implemented automatic memory leak detection and reporting for CRT.
This commit is contained in:
@@ -25,6 +25,7 @@ MenuComponent::~MenuComponent(){
|
||||
std::erase_if(components,[&](MenuComponent*component){return component==this;});
|
||||
}
|
||||
std::erase_if(pMenu->displayComponents,[&](MenuComponent*component){return component==this;});
|
||||
//pMenu->components.erase(this->name); //We're not going to do this here because we are in the middle of a loop for another menu component when cleaning up.
|
||||
}
|
||||
|
||||
void MenuComponent::AfterCreate(){}
|
||||
@@ -122,4 +123,6 @@ std::string MenuComponent::GetLabel(){
|
||||
|
||||
void MenuComponent::Enable(bool enabled){
|
||||
disabled=!enabled;
|
||||
};
|
||||
};
|
||||
|
||||
void MenuComponent::Cleanup(){}
|
||||
Reference in New Issue
Block a user