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