DO NOT MERGE: Call DeleteLocalRef on callObjectMethod's returned value

CallObjectMethod returns a local reference that's causing memory
leakage. We need to make sure all these local refs are deleted.

This change combines I7462bd9293b214d75df5196ae42b4da1da904e1a
(ag/16752598) and I85d68039a5f3951cb629fd4286b182c93a7293e1
(ag/16765005) from the master branch.

Bug: 214967397
Test: manual
Change-Id: Idb222eab7a498b23a194272543b2dab235eaf002
4 files changed