- the savegame manager needs a destructor

This commit is contained in:
Christoph Oelckers 2017-02-18 14:18:27 +01:00
parent 872969eb14
commit e58a03de9b
2 changed files with 5 additions and 1 deletions

View file

@ -66,6 +66,10 @@ void FSavegameManager::ClearSaveGames()
SaveGames.Clear(); SaveGames.Clear();
} }
FSavegameManager::~FSavegameManager()
{
ClearSaveGames();
}
//============================================================================= //=============================================================================
// //
// Save data maintenance // Save data maintenance

View file

@ -80,7 +80,7 @@ private:
public: public:
int WindowSize = 0; int WindowSize = 0;
FSaveGameNode *quickSaveSlot = nullptr; FSaveGameNode *quickSaveSlot = nullptr;
~FSavegameManager();
private: private:
int InsertSaveNode(FSaveGameNode *node); int InsertSaveNode(FSaveGameNode *node);