src/main/android/SDL_android_main.c
changeset 9238 3e53bd4510a2
parent 9172 985481d7f3a1
child 9828 4e0e4f544027
--- a/src/main/android/SDL_android_main.c	Mon Nov 24 11:46:20 2014 -0800
+++ b/src/main/android/SDL_android_main.c	Tue Nov 25 22:31:14 2014 +0100
@@ -47,6 +47,7 @@
                 arg = SDL_strdup(utf);
                 (*env)->ReleaseStringUTFChars(env, string, utf);
             }
+            (*env)->DeleteLocalRef(env, string);
         }
         if (!arg) {
             arg = SDL_strdup("");