Skip to content

Commit 6b2379e

Browse files
author
Mihail Slavchev
committed
fix for issue #149
1 parent 9f37f39 commit 6b2379e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/jni/ArrayElementAccessor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ Handle<Value> ArrayElementAccessor::GetArrayElement(const Handle<Object>& array,
9696
{
9797
jobject result = env.GetObjectArrayElement(reinterpret_cast<jobjectArray>(arr), index);
9898
value = CheckForArrayAccessException(env, elementSignature, &result);
99+
env.DeleteLocalRef(result);
99100
}
100101

101102
return handleScope.Escape(value);

0 commit comments

Comments
 (0)