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:
parent
1306430cf6
commit
2db9885b2d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue