mirror of https://github.com/axmolengine/axmol.git
Fix android http client memory leak
This commit is contained in:
parent
0198c8707b
commit
25a9c90b54
|
@ -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