1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-03 09:49:19 +02:00

fixed possible crash

This commit is contained in:
Nikolay Pultsin 2012-04-13 23:59:16 +02:00
parent 1306430cf6
commit 2db9885b2d

View file

@ -200,7 +200,7 @@ bool AndroidUtil::init(JavaVM* jvm) {
}
jobject AndroidUtil::createJavaFile(JNIEnv *env, const std::string &path) {
jstring javaPath = env->NewStringUTF(path.c_str());
jstring javaPath = createJavaString(env, path);
jobject javaFile = StaticMethod_ZLFile_createFileByPath->call(javaPath);
env->DeleteLocalRef(javaPath);
return javaFile;