DescriptionFix wrong usages of ScopedJavaLocalRef::Release().
Release() is used for transfer of ownership and indicates that the
caller will take responsibility for deleting the local reference when
it's done with it. This is not the right thing to use when calling Java
functions, which do *not* take ownership of the local references you
pass to them.
Also clean up passing bare jobjects around in content shell; it's saner
to always use ScopedJavaLocalRef.
BUG=522014
Committed: https://crrev.com/b105fe36022d7664683839e0c961b770b2092554
Cr-Commit-Position: refs/heads/master@{#345903}
Patch Set 1 #Patch Set 2 : Add comment to Release() explaining it should not be used to call java methods #Messages
Total messages: 18 (4 generated)
|