summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2010-05-25 15:30:28 +0000
committerAmaury Pouly <pamaury@rockbox.org>2010-05-25 15:30:28 +0000
commit129a0f94da3722bd8984db6ce60e9aeca3bb65d3 (patch)
treedbb16d54fd2a2c1877195c03dadc9a551c6d345b /firmware
parentd5b24ddcc57857d9db5751c2f6e51f55633459e7 (diff)
downloadrockbox-129a0f94da3722bd8984db6ce60e9aeca3bb65d3.tar.gz
rockbox-129a0f94da3722bd8984db6ce60e9aeca3bb65d3.tar.bz2
rockbox-129a0f94da3722bd8984db6ce60e9aeca3bb65d3.zip
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
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/hosted/sdl/button-sdl.c1
1 files changed, 1 insertions, 0 deletions
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;
}