diff --git a/cocos/platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxHelper.cpp b/cocos/platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxHelper.cpp index 5d0deccfe7..bc6a710a4b 100644 --- a/cocos/platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxHelper.cpp +++ b/cocos/platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxHelper.cpp @@ -148,6 +148,7 @@ void conversionEncodingJNI(const char* src, int byteSize, const char* fromCharse methodInfo.env->DeleteLocalRef(strArray); methodInfo.env->DeleteLocalRef(stringArg1); methodInfo.env->DeleteLocalRef(stringArg2); + methodInfo.env->DeleteLocalRef(newArray); methodInfo.env->DeleteLocalRef(methodInfo.classID); } }