Memory leak using JNI to retrieve String's value from Java code

前端 未结 1 2007
余生分开走
余生分开走 2021-02-18 18:02

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

相关标签:
1条回答
  • 2021-02-18 18:46

    Release array object.

    (*env)->DeleteLocalRef(env, array);

    0 讨论(0)
提交回复
热议问题