mirror of https://github.com/axmolengine/axmol.git
Merge pull request #11598 from HueyPark/v3.6
Fix android http client memory leak
This commit is contained in:
commit
85e58dce55
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue