diff options
Diffstat (limited to 'platform/java/mupdf_native.c')
-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; |