Merge pull request #11598 from HueyPark/v3.6

Fix android http client memory leak
This commit is contained in:
minggo 2015-04-28 16:38:21 +08:00
commit 85e58dce55
1 changed files with 1 additions and 0 deletions

View File

@ -422,6 +422,7 @@ private:
jobject jObj = methodInfo.env->CallStaticObjectMethod(methodInfo.classID, methodInfo.methodID, jurl); jobject jObj = methodInfo.env->CallStaticObjectMethod(methodInfo.classID, methodInfo.methodID, jurl);
_httpURLConnection = methodInfo.env->NewGlobalRef(jObj); _httpURLConnection = methodInfo.env->NewGlobalRef(jObj);
methodInfo.env->DeleteLocalRef(jurl); methodInfo.env->DeleteLocalRef(jurl);
methodInfo.env->DeleteLocalRef(jObj);
methodInfo.env->DeleteLocalRef(methodInfo.classID); methodInfo.env->DeleteLocalRef(methodInfo.classID);
} }
} }