From d05550e0fab3ad021319ad93023d645b1a80c13f Mon Sep 17 00:00:00 2001 From: Steven Date: Thu, 17 Dec 2015 11:34:50 -0800 Subject: [PATCH] Cleaning up leaked references in JNI caused by function arguments and return values. --- project/src/system/JNI.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/project/src/system/JNI.cpp b/project/src/system/JNI.cpp index 301202676..5828757b1 100644 --- a/project/src/system/JNI.cpp +++ b/project/src/system/JNI.cpp @@ -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; }