[Scummvm-git-logs] scummvm master -> 9a2ba16767fee4cd923b72270d118f5590b9e597

sev- sev at scummvm.org
Wed Aug 19 23:26:08 UTC 2020


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
9a2ba16767 BACKENDS: Shut down individual SDL subsystems


Commit: 9a2ba16767fee4cd923b72270d118f5590b9e597
    https://github.com/scummvm/scummvm/commit/9a2ba16767fee4cd923b72270d118f5590b9e597
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2020-08-20T01:25:55+02:00

Commit Message:
BACKENDS: Shut down individual SDL subsystems

Changed paths:
    backends/mixer/sdl/sdl-mixer.cpp
    backends/timer/sdl/sdl-timer.cpp


diff --git a/backends/mixer/sdl/sdl-mixer.cpp b/backends/mixer/sdl/sdl-mixer.cpp
index 7e59121fe3..b0352a9914 100644
--- a/backends/mixer/sdl/sdl-mixer.cpp
+++ b/backends/mixer/sdl/sdl-mixer.cpp
@@ -50,6 +50,8 @@ SdlMixerManager::~SdlMixerManager() {
 
 	SDL_CloseAudio();
 
+	SDL_QuitSubSystem(SDL_INIT_AUDIO);
+
 	delete _mixer;
 }
 
diff --git a/backends/timer/sdl/sdl-timer.cpp b/backends/timer/sdl/sdl-timer.cpp
index 7cceb2755e..f9d79ac885 100644
--- a/backends/timer/sdl/sdl-timer.cpp
+++ b/backends/timer/sdl/sdl-timer.cpp
@@ -53,6 +53,8 @@ SdlTimerManager::~SdlTimerManager() {
 
 	// Removes the timer callback
 	SDL_RemoveTimer(_timerID);
+
+	SDL_QuitSubSystem(SDL_INIT_TIMER);
 }
 
 #endif




More information about the Scummvm-git-logs mailing list