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
(cherry picked from commit 4aa7ccbbd22ded26c948adb7f214144165ef4099)
1 file changed