diff options
Diffstat (limited to 'firmware/target/hosted/sdl/system-sdl.c')
-rw-r--r-- | firmware/target/hosted/sdl/system-sdl.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/firmware/target/hosted/sdl/system-sdl.c b/firmware/target/hosted/sdl/system-sdl.c index d56f1d7874..ff4fe6570e 100644 --- a/firmware/target/hosted/sdl/system-sdl.c +++ b/firmware/target/hosted/sdl/system-sdl.c | |||
@@ -144,14 +144,11 @@ static int sdl_event_thread(void * param) | |||
144 | return 0; | 144 | return 0; |
145 | } | 145 | } |
146 | 146 | ||
147 | void sim_do_exit(SDL_mutex *m) | 147 | void sim_do_exit(void) |
148 | { | 148 | { |
149 | /* wait for event thread to finish */ | 149 | /* wait for event thread to finish */ |
150 | SDL_WaitThread(evt_thread, NULL); | 150 | SDL_WaitThread(evt_thread, NULL); |
151 | 151 | ||
152 | /* cleanup */ | ||
153 | SDL_DestroyMutex(m); | ||
154 | |||
155 | SDL_Quit(); | 152 | SDL_Quit(); |
156 | exit(EXIT_SUCCESS); | 153 | exit(EXIT_SUCCESS); |
157 | while(1); | 154 | while(1); |