[android] Fix JNI local ref overflow

Change test to 1000 markers
For #2726
This commit is contained in:
Leith Bade
2015-10-23 15:42:39 +11:00
parent f71d61fa91
commit 54762825b0
3 changed files with 3 additions and 3 deletions

View File

@@ -887,6 +887,7 @@ jlongArray JNICALL nativeAddMarkers(JNIEnv *env, jobject obj, jlong nativeMapVie
env->DeleteLocalRef(icon);
std::string id = std_string_from_jstring(env, jid);
env->DeleteLocalRef(jid);
jdouble latitude = env->GetDoubleField(position, latLngLatitudeId);
if (env->ExceptionCheck()) {
@@ -2196,4 +2197,3 @@ extern "C" JNIEXPORT void JNICALL JNI_OnUnload(JavaVM *vm, void *reserved) {
theJVM = nullptr;
}
}