(*env)->ReleasePrimitiveArrayCritical(env,returnValue,tiffData,0);// Do not use JNI_COMMIT, as that will not free the buffer copy when +ProtectJavaHeap is on.
(*env)->ReleasePrimitiveArrayCritical(env,returnValue,tiffData,0);// Do not use JNI_COMMIT, as that will not free the buffer copy when +ProtectJavaHeap is on.