Implemented automatic memory leak detection and reporting for CRT.

This commit is contained in:
2023-11-11 04:03:48 -06:00
parent 67a5288984
commit 380582dfeb
12 changed files with 31067 additions and 16 deletions
+4 -1
View File
@@ -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(){}