diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 82ca10881f..353df0f86a 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -935,6 +935,7 @@ int main(int argc, char* argv[]) SONGMAN = new SongManager( loading_window ); // this takes a long time to load MEMCARDMAN = new MemoryCardManager; PROFILEMAN = new ProfileManager; // must load after SONGMAN + UNLOCKSYS = new UnlockSystem; delete loading_window; // destroy this before init'ing Display DISPLAY = CreateDisplay(); @@ -1010,6 +1011,7 @@ int main(int argc, char* argv[]) SAFE_DELETE( INPUTQUEUE ); SAFE_DELETE( INPUTMAPPER ); SAFE_DELETE( INPUTFILTER ); + SAFE_DELETE( UNLOCKSYS ); SAFE_DELETE( PROFILEMAN ); // PROFILEMAN needs the songs still loaded SAFE_DELETE( MEMCARDMAN ); SAFE_DELETE( SONGMAN );