mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-03 17:59:33 +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) {
|
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);
|
jobject javaFile = StaticMethod_ZLFile_createFileByPath->call(javaPath);
|
||||||
env->DeleteLocalRef(javaPath);
|
env->DeleteLocalRef(javaPath);
|
||||||
return javaFile;
|
return javaFile;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue