Skip to content

Commit

Permalink
Fixed bug 3917 - Android, issues with getManifestEnvironmentVariable
Browse files Browse the repository at this point in the history
Sylvain

Some issue with this commit:
https://hg.libsdl.org/SDL/rev/97387a8b88d3

There is a memory allocation missing.
  • Loading branch information
slouken committed Nov 2, 2017
1 parent 8c46580 commit 1475e69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/android/SDL_android.c
Expand Up @@ -2121,6 +2121,7 @@ char *SDL_AndroidGetManifestEnvironmentVariable(const char *variableName)

jstring jVariableName = (*env)->NewStringUTF(env, variableName);
jstring jResult = (jstring)((*env)->CallStaticObjectMethod(env, mActivityClass, midGetManifestEnvironmentVariable, jVariableName));
(*env)->DeleteLocalRef(env, jVariableName);

if (jResult == NULL) {
return NULL;
Expand Down

0 comments on commit 1475e69

Please sign in to comment.