aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sdl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/sdl.cpp b/sdl.cpp
index 8ac4218d2a..c22002430f 100644
--- a/sdl.cpp
+++ b/sdl.cpp
@@ -949,6 +949,10 @@ uint32 OSystem_SDL::property(int param, uint32 value) {
}
void OSystem_SDL::quit() {
+ if(cdrom) {
+ SDL_CDStop(cdrom);
+ SDL_CDClose(cdrom);
+ }
unload_gfx_mode();
exit(1);
}