I\'m using GetStringUTFChars to retrieve a string\'s value from the java code using JNI and releasing the string using ReleaseStringUTFChars. When the code is running on JRE 1.4
Release array object.
(*env)->DeleteLocalRef(env, array);