mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
Fixed bug 3917 - Android, issues with getManifestEnvironmentVariable
Sylvain Some issue with this commit: https://hg.libsdl.org/SDL/rev/97387a8b88d3 There is a memory allocation missing.
This commit is contained in:
parent
8c46580231
commit
1475e6984a
@ -2121,6 +2121,7 @@ char *SDL_AndroidGetManifestEnvironmentVariable(const char *variableName)
|
|||||||
|
|
||||||
jstring jVariableName = (*env)->NewStringUTF(env, variableName);
|
jstring jVariableName = (*env)->NewStringUTF(env, variableName);
|
||||||
jstring jResult = (jstring)((*env)->CallStaticObjectMethod(env, mActivityClass, midGetManifestEnvironmentVariable, jVariableName));
|
jstring jResult = (jstring)((*env)->CallStaticObjectMethod(env, mActivityClass, midGetManifestEnvironmentVariable, jVariableName));
|
||||||
|
(*env)->DeleteLocalRef(env, jVariableName);
|
||||||
|
|
||||||
if (jResult == NULL) {
|
if (jResult == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user