diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-28 23:34:59 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-28 23:34:59 +1000 |
commit | 99846487b96b66bcfee9df50696c99f9429edda7 (patch) | |
tree | 769778e02cc33bd4cf22d5379c6c13112d17c75c /source/application/StarMainApplication_sdl.cpp | |
parent | 47ae258c2ead64542896a0c93c65cfe5bc635361 (diff) |
Properly clean up SDL controllers and cursors on application exit
Diffstat (limited to 'source/application/StarMainApplication_sdl.cpp')
-rw-r--r-- | source/application/StarMainApplication_sdl.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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(); } |