SDL: Fix crash on shutdown when save state selector used

This commit is contained in:
Connor McLaughlin 2020-09-06 17:48:01 +10:00
parent 976d4bae79
commit 4f8fd049d0
1 changed files with 2 additions and 2 deletions

View File

@ -420,6 +420,8 @@ void SDLHostInterface::Shutdown()
{
DestroySystem();
CommonHostInterface::Shutdown();
if (m_display)
{
DestroyDisplay();
@ -428,8 +430,6 @@ void SDLHostInterface::Shutdown()
if (m_window)
DestroySDLWindow();
CommonHostInterface::Shutdown();
}
std::string SDLHostInterface::GetStringSettingValue(const char* section, const char* key,