Fixed limitation for number of custom main() arguments on Android.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Tue, 25 Nov 2014 22:31:14 +0100
changeset 9238 3e53bd4510a2
parent 9237 2cc90bb31777
child 9239 4a4293b8a37f
Fixed limitation for number of custom main() arguments on Android. Limitation was size of the reference table because local refs were not deleted.
src/main/android/SDL_android_main.c
--- a/src/main/android/SDL_android_main.c	Mon Nov 24 11:46:20 2014 -0800
+++ b/src/main/android/SDL_android_main.c	Tue Nov 25 22:31:14 2014 +0100
@@ -47,6 +47,7 @@
                 arg = SDL_strdup(utf);
                 (*env)->ReleaseStringUTFChars(env, string, utf);
             }
+            (*env)->DeleteLocalRef(env, string);
         }
         if (!arg) {
             arg = SDL_strdup("");