We cannot rely on the VM automatically freeing local references for us in a timely manner in JNI code that is not called directly from Java. Change-Id: I6ee8a9a97cb557b9d3b2ace4e4d20467b436fb9c Signed-off-by: Mike Lockwood <lockwood@android.com>