diff --git a/src/convert.jl b/src/convert.jl index 078a8be..e7605df 100644 --- a/src/convert.jl +++ b/src/convert.jl @@ -139,6 +139,7 @@ for (x, y, z) in [(:jboolean, :(JNI.GetBooleanArrayElements), :(JNI.ReleaseBoole jl_arr::Array = unsafe_wrap(Array, arr, Int(sz)) jl_arr = deepcopy(jl_arr) $z(result, arr, Int32(0)) + JNI.DeleteLocalRef(result) return jl_arr end end