Do I need to call ReleaseIntArrayElements when using NewIntArray?
posted 10 years ago
Sorry if this question sounds ridiculous but the documentation for JNI is pretty weak so i couldn't find a good answer.
I know when I have a "jintArray" that I get elements from (via GetIntArrayElements), that I then need to release them later. Doing so, I call the function on the original jintArray as well as the element array. However, when creating a new jint array, I have no "jintArray" to pass to the release function. Does this mean I don't release them? Why?