From 129a0f94da3722bd8984db6ce60e9aeca3bb65d3 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Tue, 25 May 2010 15:30:28 +0000 Subject: sdl: call SDL_Quit() before exiting when receiving the SDL_QUIT event. It is necessary as the sdl tree move removed the atexit(SDL_Quit); git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26283 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/hosted/sdl/button-sdl.c | 1 + 1 file changed, 1 insertion(+) (limited to 'firmware') diff --git a/firmware/target/hosted/sdl/button-sdl.c b/firmware/target/hosted/sdl/button-sdl.c index e9fc03792c..629d3aa9bd 100644 --- a/firmware/target/hosted/sdl/button-sdl.c +++ b/firmware/target/hosted/sdl/button-sdl.c @@ -176,6 +176,7 @@ void gui_message_loop(void) case SDL_QUIT: { sim_exit_irq_handler(); + SDL_Quit(); exit(EXIT_SUCCESS); break; } -- cgit