diff --git a/source/application/StarMainApplication_sdl.cpp b/source/application/StarMainApplication_sdl.cpp index 818cada..5837aa6 100644 --- a/source/application/StarMainApplication_sdl.cpp +++ b/source/application/StarMainApplication_sdl.cpp @@ -310,6 +310,7 @@ public: } ~SdlPlatform() { + SDL_CloseAudioDevice(m_sdlAudioDevice); m_renderer.reset(); @@ -397,6 +398,11 @@ public: } SDL_CloseAudioDevice(m_sdlAudioDevice); + m_SdlControllers.clear(); + + SDL_SetCursor(NULL); + m_cursorCache.clear(); + m_application.reset(); }