Fix android http client memory leak

This commit is contained in:
HueyPark 2015-04-26 20:52:09 +09:00
parent 0198c8707b
commit 25a9c90b54
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);
_httpURLConnection = methodInfo.env->NewGlobalRef(jObj);
methodInfo.env->DeleteLocalRef(jurl);
methodInfo.env->DeleteLocalRef(jObj);
methodInfo.env->DeleteLocalRef(methodInfo.classID);
}
}