// // ShutdownGL // - place all memory releases and stuff here // void ShutdownGL(void) { DeleteObjects(); ShutdownLights(); DeleteObjects(); ShutdownFireAnts(); ShutdownWorld(); Delete_Wall_List(); Delete_Col_List(); // destroy particle set Destroy_ParticleSet(); Super_KillText(); // Call after shutdown fireants Super_KillFires(); Super_DeleteNetwork(); // This should probably be close to last Super_KillGlobals(); DestroyGlobals(); } // end of the function
LOCAL_C void RunTestsL() /** * Run all the tests */ { InitGlobals(); AutoTestExecute(); DestroyGlobals(); }
static void AppStop(void) { /* Close all the open forms. */ FrmCloseAllForms(); DestroyGlobals(); DisplayInitDepth(false); }
// // ShutdownGL // - place all memory releases and stuff here // void ShutdownGL(void) { #if 1 KillFont(); // kill the font DeleteObjects(); ShutdownBots(); ShutdownFireAnts(); nest.shutdown(); trail_set.shutdown(); garden.shutdown(); ShutdownWorld(); // hope I got all these Delete_Wall_List(); Delete_Col_List(); // ShutdownLights(); Destroy_ParticleSet(); Super_KillText(); // Try to place code below -- Super_KillBots(); Super_KillFires(); // make sure thispretty close to last Super_KillGlobals(); DestroyGlobals(); #if ENABLE_CONSOLE KillConsole(); // kill launched console screen #endif #endif } // end of the function
//! @brief Finalizes the application int SpringLobbyApp::OnExit() { if ( quit_called ) return 0; quit_called = true; wxLogDebugFunc( _T("") ); if(m_translationhelper) { wxDELETE(m_translationhelper); } m_timer->Stop(); sett().SaveSettings(); // to make sure that cache path gets saved before destroying unitsync SetEvtHandlerEnabled(false); UiEvents::GetNotificationEventSender().Enable( false ); DestroyGlobals(); return 0; }