# HG changeset patch # User Sam Lantinga # Date 1294967580 28800 # Node ID 55fccf89b340c153989a262031e3a48a0aafb94f # Parent a514bfe6952a3945bf96354254576fe275b6f4eb Make sure we shut down the app if SDL_main() returns instead of exiting. diff -r a514bfe6952a -r 55fccf89b340 src/main/android/SDL_android_main.cpp --- a/src/main/android/SDL_android_main.cpp Thu Jan 13 15:10:17 2011 -0800 +++ b/src/main/android/SDL_android_main.cpp Thu Jan 13 17:13:00 2011 -0800 @@ -23,8 +23,14 @@ SDL_Android_Init(env, cls); /* Run the application code! */ + int status; char *argv[2]; argv[0] = strdup("SDL_app"); argv[1] = NULL; - SDL_main(1, argv); + status = SDL_main(1, argv); + + /* We exit here for consistency with other platforms. */ + exit(status); } + +/* vi: set ts=4 sw=4 expandtab: */