From 99846487b96b66bcfee9df50696c99f9429edda7 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Wed, 28 Jun 2023 23:34:59 +1000 Subject: [PATCH] Properly clean up SDL controllers and cursors on application exit --- source/application/StarMainApplication_sdl.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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(); }