From 8541c489ff7b68846635b12cf0d2ad8b2a6a67e3 Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Sat, 17 Aug 2013 19:13:49 +0200 Subject: [PATCH] make sure that GetObjectArrayElement are freed. --- jnius/jnius_proxy.pxi | 1 + 1 file changed, 1 insertion(+) diff --git a/jnius/jnius_proxy.pxi b/jnius/jnius_proxy.pxi index 6ef6ab8..164d88d 100644 --- a/jnius/jnius_proxy.pxi +++ b/jnius/jnius_proxy.pxi @@ -114,6 +114,7 @@ cdef jobject py_invoke0(JNIEnv *j_env, jobject j_this, jobject j_proxy, jobject arg_signature = convert_signature.get(arg_signature, arg_signature) j_arg = j_env[0].GetObjectArrayElement(j_env, args, index) py_arg = convert_jobject_to_python(j_env, arg_signature, j_arg) + j_env[0].DeleteLocalRef(j_env, j_arg) py_args.append(py_arg) # really invoke the python method