mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Clear level stats vector before loading them into the vector
Otherwise this results in what is basically a memory leak that can be triggered repeatedly by selecting "play a level" over and over again. Fixes #885.
This commit is contained in:
@@ -483,6 +483,8 @@ void Game::loadcustomlevelstats(void)
|
||||
return;
|
||||
}
|
||||
|
||||
customlevelstats.clear();
|
||||
|
||||
// Old system
|
||||
std::vector<std::string> customlevelnames;
|
||||
std::vector<int> customlevelscores;
|
||||
|
||||
Reference in New Issue
Block a user