mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
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:
parent
94539137a2
commit
8cab5ae300
@ -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("");
|
||||
|
Loading…
Reference in New Issue
Block a user