Fix crash when pressing close window button in GP result screen

This commit is contained in:
Benau 2021-06-29 13:02:16 +08:00
parent d2df7c6de9
commit 6f7a196c70
2 changed files with 7 additions and 0 deletions

View File

@ -739,6 +739,12 @@ void RaceResultGUI::displayCTFResults()
}
#endif
}
//-----------------------------------------------------------------------------
void RaceResultGUI::unload()
{
cleanupGPProgress();
Screen::unload();
}
//-----------------------------------------------------------------------------
void RaceResultGUI::onConfirm()

View File

@ -213,6 +213,7 @@ public:
virtual void init() OVERRIDE;
virtual void tearDown() OVERRIDE;
virtual bool onEscapePressed() OVERRIDE;
virtual void unload() OVERRIDE;
virtual GUIEngine::EventPropagation
filterActions(PlayerAction action, int deviceID, const unsigned int value,
Input::InputType type, int playerId) OVERRIDE;