diff options
author | Amaury Pouly <pamaury@rockbox.org> | 2010-05-25 15:30:28 +0000 |
---|---|---|
committer | Amaury Pouly <pamaury@rockbox.org> | 2010-05-25 15:30:28 +0000 |
commit | 129a0f94da3722bd8984db6ce60e9aeca3bb65d3 (patch) | |
tree | dbb16d54fd2a2c1877195c03dadc9a551c6d345b /firmware/target/hosted | |
parent | d5b24ddcc57857d9db5751c2f6e51f55633459e7 (diff) | |
download | rockbox-129a0f94da3722bd8984db6ce60e9aeca3bb65d3.tar.gz 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/target/hosted')
-rw-r--r-- | firmware/target/hosted/sdl/button-sdl.c | 1 |
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) | |||
176 | case SDL_QUIT: | 176 | case SDL_QUIT: |
177 | { | 177 | { |
178 | sim_exit_irq_handler(); | 178 | sim_exit_irq_handler(); |
179 | SDL_Quit(); | ||
179 | exit(EXIT_SUCCESS); | 180 | exit(EXIT_SUCCESS); |
180 | break; | 181 | break; |
181 | } | 182 | } |