am 83665194: Merge change I9d5e03db into eclair

Merge commit '83665194abceeb7681cb7ac49a4b71aa6e96b1b1' into eclair-mr2

* commit '83665194abceeb7681cb7ac49a4b71aa6e96b1b1':
  Fix RS bugs.  We were holding a pointer to the script text from the java vm. Move freeing of objects to before context teardown to allow allocations to clean up their data.