mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-25 06:45:28 +00: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);
|
arg = SDL_strdup(utf);
|
||||||
(*env)->ReleaseStringUTFChars(env, string, utf);
|
(*env)->ReleaseStringUTFChars(env, string, utf);
|
||||||
}
|
}
|
||||||
|
(*env)->DeleteLocalRef(env, string);
|
||||||
}
|
}
|
||||||
if (!arg) {
|
if (!arg) {
|
||||||
arg = SDL_strdup("");
|
arg = SDL_strdup("");
|
||||||
|
|
Loading…
Reference in a new issue