Fixed bug 3917 - Android, issues with getManifestEnvironmentVariable
authorSam Lantinga <slouken@libsdl.org>
Wed, 01 Nov 2017 19:19:21 -0700
changeset 116691fe21a20aa12
parent 11668 7274ada44290
child 11670 cb780bb5093a
Fixed bug 3917 - Android, issues with getManifestEnvironmentVariable

Sylvain

Some issue with this commit:
https://hg.libsdl.org/SDL/rev/4130b92b6be4

There is a memory allocation missing.
src/core/android/SDL_android.c
     1.1 --- a/src/core/android/SDL_android.c	Wed Nov 01 18:41:11 2017 -0700
     1.2 +++ b/src/core/android/SDL_android.c	Wed Nov 01 19:19:21 2017 -0700
     1.3 @@ -2121,6 +2121,7 @@
     1.4  
     1.5      jstring jVariableName = (*env)->NewStringUTF(env, variableName);
     1.6      jstring jResult = (jstring)((*env)->CallStaticObjectMethod(env, mActivityClass, midGetManifestEnvironmentVariable, jVariableName));
     1.7 +    (*env)->DeleteLocalRef(env, jVariableName);
     1.8  
     1.9      if (jResult == NULL) {
    1.10          return NULL;