title: Do I need to call ReleaseIntArrayElements on an array created with NewIntArray?
body: <p>I have a native method that does some work on a bitmap. Inside the method I grab the image data via a method call that writes the data to a <code>jintArray</code> parameter that I've created with <code>NewIntArray</code>:</p>
  
  <p><code>jintArray pixels = env-&gt;NewIntArray(width * height);</code></p>
  
  <p>I don't need to return this array back to the calling Java code - it's only for processing while in this method. Do I need to call <code>ReleaseIntArrayElements</code> on <code>pixels</code>? If so, what do I pass for the <code>elems</code> parameter, since I don't need to copy it back to a Java array?</p>
  
  <p><code>void (JNICALL *ReleaseIntArrayElements)
         (JNIEnv *env, jintArray array, jint *elems, jint mode);</code></p>