Fix JNI array memory leak

When returning an array from Java into native, we should both:
1. Release the Java array reference
2. Delete the local ref of the returned object

Test: Manual
Change-Id: If1a30cb003facedbba85f65dac4d62fa0a1ef38d
1 file changed