Cleaning up leaked references in JNI caused by function arguments and return values.

This commit is contained in:
Steven
2015-12-17 11:34:50 -08:00
parent f8adb667ca
commit d05550e0fa

View File

@@ -1715,6 +1715,7 @@ namespace lime {
value CallStatic (value inArgs) {
JNIEnv *env = (JNIEnv*)JNI::GetEnv ();
env->PushLocalFrame(128);
jvalue jargs[MAX];
if (!HaxeToJNIArgs (env, inArgs, jargs)) {
@@ -1792,6 +1793,7 @@ namespace lime {
CleanStringArgs ();
CheckException (env);
env->PopLocalFrame(NULL);
return result;
}