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
+1
View File
@@ -67,6 +67,7 @@ public:
vf2d center();
//Returns the last menu type created and last registered component, in case a component is detected as memory leaking, provides this information to each component for safety.
static std::pair<MenuType,std::string>GetMemoryLeakReportInfo();
virtual void Cleanup();
private:
Menu(vf2d pos,vf2d size);
static MenuType lastMenuTypeCreated;