Skip to content

Commit

Permalink
Delete local refs for array elements during conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
paddybyers committed Aug 22, 2013
1 parent 2f8c816 commit 8303da6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bridge/src/Conv.cpp
Expand Up @@ -859,6 +859,7 @@ int Conv::ToV8Sequence(JNIEnv *jniEnv, jarray jVal, int expectedType, Handle<Arr
Local<Value> elt;
jobject jElt = jniEnv->GetObjectArrayElement(jOVal, i);
result = ToV8Value(jniEnv, jElt, componentType, &elt);
jniEnv->DeleteLocalRef(jElt);
if(result != OK) break;
lVal->Set(i, elt);
}
Expand Down

0 comments on commit 8303da6

Please sign in to comment.