void OnExit() { wxFontsManager::CleanUp(); wxDestroyMGL_WM(); MGL_exit(); }
void wxApp::CleanUp() { delete gs_rootWindow; wxAppBase::CleanUp(); // must do this after calling base class CleanUp() delete wxTheFontsManager; wxTheFontsManager = (wxFontsManager*) NULL; wxDestroyMGL_WM(); MGL_exit(); }