Skip to content

Commit

Permalink
Fixed limitation for number of custom main() arguments on Android.
Browse files Browse the repository at this point in the history
Limitation was size of the reference table because local refs were not deleted.
  • Loading branch information
philippwiesemann committed Nov 25, 2014
1 parent 9453913 commit 8cab5ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/android/SDL_android_main.c
Expand Up @@ -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("");
Expand Down

0 comments on commit 8cab5ae

Please sign in to comment.