From 1b90f222a4d904784b0fc21c1ba1d21ba3482115 Mon Sep 17 00:00:00 2001 From: Bram Verhulst Date: Tue, 23 Apr 2024 11:17:17 +0200 Subject: [PATCH] Add alot of memory leak fixes --- .idea/.idea.Motherload/.idea/workspace.xml | 43 +++++++++++++++------- Engine/Text.cpp | 1 + Game/Animations/Animation.cpp | 4 +- Game/Animations/Animation.h | 2 +- Game/Game.cpp | 11 +++++- Game/Game.vcxproj | 10 +++++ Game/Game.vcxproj.filters | 24 +++++++++--- Game/GridSystem/WorldGridManager.cpp | 22 +++++++++++ Game/GridSystem/WorldGridManager.h | 2 - Game/GridSystem/WorldTile.cpp | 5 ++- Game/GridSystem/WorldTile.h | 4 +- Game/GroundTileTypeManager.cpp | 22 +++++++++++ Game/GroundTileTypeManager.h | 38 +++++++++++++++++++ Game/Gui/Screen.cpp | 3 ++ Game/Gui/Screens/FuelScreen.cpp | 4 ++ Game/Gui/Screens/FuelScreen.h | 1 + Game/Gui/Screens/ScreenManager.cpp | 16 ++++++-- Game/Gui/Screens/ScreenManager.h | 8 ++-- Game/Levels/MainMenu/MainMenuLevel.h | 2 +- Game/Levels/World/Building.cpp | 2 + Game/Levels/World/WorldLevel.cpp | 31 +++++++++++++++- Game/Levels/World/WorldLevel.h | 3 +- Game/Player.cpp | 4 +- Game/Player.h | 4 +- Game/TextureManager.cpp | 9 ++++- Game/TextureManager.h | 3 +- Game/main.cpp | 4 +- 27 files changed, 234 insertions(+), 48 deletions(-) create mode 100644 Game/GroundTileTypeManager.cpp create mode 100644 Game/GroundTileTypeManager.h diff --git a/.idea/.idea.Motherload/.idea/workspace.xml b/.idea/.idea.Motherload/.idea/workspace.xml index 38ce9ba..e87ac59 100644 --- a/.idea/.idea.Motherload/.idea/workspace.xml +++ b/.idea/.idea.Motherload/.idea/workspace.xml @@ -11,24 +11,33 @@ + + - - + + + - + + + + - + + + + + + + + + + - - - - - - - - + + + + + + + +