mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-04 18:29:23 +02:00
synchronization with native branch
This commit is contained in:
parent
1a55b864aa
commit
4340db7f70
2 changed files with 10 additions and 0 deletions
|
@ -41,3 +41,7 @@ JNIEXPORT jobjectArray JNICALL Java_org_geometerplus_fbreader_formats_PluginColl
|
|||
*/
|
||||
return javaPlugins;
|
||||
}
|
||||
|
||||
extern "C"
|
||||
JNIEXPORT void JNICALL Java_org_geometerplus_fbreader_formats_PluginCollection_free(JNIEnv* env, jobject thiz) {
|
||||
}
|
||||
|
|
|
@ -115,4 +115,10 @@ public class PluginCollection {
|
|||
}
|
||||
|
||||
private native NativeFormatPlugin[] nativePlugins();
|
||||
private native void free();
|
||||
|
||||
protected void finalize() throws Throwable {
|
||||
free();
|
||||
super.finalize();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue