make sure that GetObjectArrayElement are freed.

This commit is contained in:
Mathieu Virbel 2013-08-17 19:13:49 +02:00
parent 54097ccacb
commit 8541c489ff
1 changed files with 1 additions and 0 deletions

View File

@ -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