Jni Can't Release Memory October 25, 2023 Post a Comment This is JNI's C++ code: extern 'C' JNIEXPORT jbyteArray JNICALL Java_cn_rilled_encoder_JNIEncoder_encodeEncryptBuff( JNIEnv* env, jobject obj, jbyteArray ucSolution 1: I solved the problem with delete encryptBuff.New Code... unsignedchar* chars = (unsignedchar *) malloc(chars_len); ... free(chars); delete encryptBuff; return bArray; CopyNew memory usage: Share Post a Comment for "Jni Can't Release Memory"
Post a Comment for "Jni Can't Release Memory"