summaryrefslogtreecommitdiff
path: root/android/jni/mupdf.c
diff options
context:
space:
mode:
Diffstat (limited to 'android/jni/mupdf.c')
-rw-r--r--android/jni/mupdf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/android/jni/mupdf.c b/android/jni/mupdf.c
index 29942f3a..915f3946 100644
--- a/android/jni/mupdf.c
+++ b/android/jni/mupdf.c
@@ -259,6 +259,7 @@ Java_com_artifex_mupdf_MuPDFCore_openFile(JNIEnv * env, jobject thiz, jstring jf
if (!ctx)
{
LOGE("Failed to initialise context");
+ (*env)->ReleaseStringUTFChars(env, jfilename, filename);
free(glo);
return 0;
}