Fix local reference leak in OpenApkAsset.

OpenApkAsset was incorrectly calling ScopedJavaLocalRef::Release on the
name of the asset, causing the local reference to leak. This doesn't
matter a great deal in most cases since local references are cleaned up
when returning to Java, but for running native unittest APKs this gets
called once per test and so it's possible for the local reference table
to fill up in some cases.

Call obj() instead to get a temporary reference to the jobject, so that
the reference is still deleted once it goes out of scope.

BUG=516725

Review URL: https://codereview.chromium.org/1272203002

Cr-Commit-Position: refs/heads/master@{#341906}


CrOS-Libchrome-Original-Commit: d90ac6f278eb61b9beea693763ad374ade10102d
1 file changed
tree: bede75848bd3617bf9f1658980da4482b8ac67dd
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/