diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2018-01-15 14:14:21 +0100 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2018-01-15 14:21:00 +0100 |
commit | a54a6ff9db7e941536b5aed5a9be985f3468e0c3 (patch) | |
tree | 0a4dade9ed82dae4e5077f5eb6ad2f97c8a5a55f | |
parent | a926254b62d3f0e99e19c1d979217ad585e41f2b (diff) | |
download | mupdf-a54a6ff9db7e941536b5aed5a9be985f3468e0c3.tar.xz |
Bug 698857: Delete local reference after use.
Without deleteing it the local reference table may overflow.
-rw-r--r-- | platform/java/mupdf_native.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/java/mupdf_native.c b/platform/java/mupdf_native.c index 2268cc97..c61db6b7 100644 --- a/platform/java/mupdf_native.c +++ b/platform/java/mupdf_native.c @@ -5967,6 +5967,8 @@ FUN(StructuredText_getBlocks)(JNIEnv *env, jobject self) /* set the line's char array */ (*env)->SetObjectField(env, jline, fid_TextLine_chars, carr); + (*env)->DeleteLocalRef(env, carr); + /* add to the line array */ (*env)->SetObjectArrayElement(env, larr, l, jline); if ((*env)->ExceptionCheck(env)) return NULL; |