title: Do I need to DeleteLocalRef a jstring object returned by JNI call?
body: <p>Suppose I'm using JNI to call some Java method that returns <code>String</code>, i. e. <code>jstring</code> in native code:</p>
  
  <pre><code>jstring jStr = (jstring)env-&gt;CallStaticObjectMethod(myApplicationClass, getString);
  </code></pre>
  
  <p>Do I then need to call <code>env-&gt;DeleteLocalRef(jStr)</code>? I think I do, but I can't find any specific instructions that state so in the JNI reference, and I can see I have a lot of code that doesn't call it - tried and true code. But if there was a minor memory leak, no one would notice since this code doesn't create many objects.</p>