Q
qazmlp
My JNI code has the following
const char *tempstr = pJNIEnv->GetStringUTFChars(str, 0);
// Do some processing
pJNIEnv->ReleaseStringUTFChars(str,tempstr);
Is this code safe? Or, is it must to check for isCopy i.e. the value
for the second argument in GetStringUTFChars and then call
ReleaseStringUTFChars() only if isCopy is set to true?
const char *tempstr = pJNIEnv->GetStringUTFChars(str, 0);
// Do some processing
pJNIEnv->ReleaseStringUTFChars(str,tempstr);
Is this code safe? Or, is it must to check for isCopy i.e. the value
for the second argument in GetStringUTFChars and then call
ReleaseStringUTFChars() only if isCopy is set to true?