diff options
author | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2016-05-14 16:22:02 -0700 |
---|---|---|
committer | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2016-05-14 16:22:13 -0700 |
commit | 5f899396dcb9f8ac9cf6c07e054fe376fc1f77a9 (patch) | |
tree | a5c1c3fe42842bf8b519b0be39cb6312ec80efa9 /src | |
parent | bd2f090400997286296647d27660e52f8f2381c9 (diff) |
Fixed IndexSet#allRanges() in case lots of indexSet contains lots of ranges (fixed #1428)
Diffstat (limited to 'src')
-rw-r--r-- | src/java/native/com_libmailcore_IndexSet.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/java/native/com_libmailcore_IndexSet.cpp b/src/java/native/com_libmailcore_IndexSet.cpp index 1b685384..72f3a746 100644 --- a/src/java/native/com_libmailcore_IndexSet.cpp +++ b/src/java/native/com_libmailcore_IndexSet.cpp @@ -136,6 +136,7 @@ JNIEXPORT jobject JNICALL Java_com_libmailcore_IndexSet_allRanges for(unsigned int i = 0 ; i < count ; i ++) { jobject javaObject = rangeToJava(env, ranges[i]); env->CallBooleanMethod(javaVector, method, javaObject); + env->DeleteLocalRef(javaObject); } MC_POOL_END; return javaVector; |