Fixed limitation for number of custom main() arguments on Android.

Limitation was size of the reference table because local refs were not deleted.
This commit is contained in:
Philipp Wiesemann 2014-11-25 22:31:14 +01:00
parent 94539137a2
commit 8cab5ae300

View file

@ -47,6 +47,7 @@ int Java_org_libsdl_app_SDLActivity_nativeInit(JNIEnv* env, jclass cls, jobject
arg = SDL_strdup(utf);
(*env)->ReleaseStringUTFChars(env, string, utf);
}
(*env)->DeleteLocalRef(env, string);
}
if (!arg) {
arg = SDL_strdup("");