src/main/android/SDL_android_main.c
changeset 9238 3e53bd4510a2
parent 9172 985481d7f3a1
child 9828 4e0e4f544027
equal deleted inserted replaced
9237:2cc90bb31777 9238:3e53bd4510a2
    45             utf = (*env)->GetStringUTFChars(env, string, 0);
    45             utf = (*env)->GetStringUTFChars(env, string, 0);
    46             if (utf) {
    46             if (utf) {
    47                 arg = SDL_strdup(utf);
    47                 arg = SDL_strdup(utf);
    48                 (*env)->ReleaseStringUTFChars(env, string, utf);
    48                 (*env)->ReleaseStringUTFChars(env, string, utf);
    49             }
    49             }
       
    50             (*env)->DeleteLocalRef(env, string);
    50         }
    51         }
    51         if (!arg) {
    52         if (!arg) {
    52             arg = SDL_strdup("");
    53             arg = SDL_strdup("");
    53         }
    54         }
    54         argv[argc++] = arg;
    55         argv[argc++] = arg;