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

synchronization with native branch

This commit is contained in:
Nikolay Pultsin 2012-02-24 00:23:58 +01:00
parent 1a55b864aa
commit 4340db7f70
2 changed files with 10 additions and 0 deletions

View file

@ -41,3 +41,7 @@ JNIEXPORT jobjectArray JNICALL Java_org_geometerplus_fbreader_formats_PluginColl
*/ */
return javaPlugins; return javaPlugins;
} }
extern "C"
JNIEXPORT void JNICALL Java_org_geometerplus_fbreader_formats_PluginCollection_free(JNIEnv* env, jobject thiz) {
}

View file

@ -115,4 +115,10 @@ public class PluginCollection {
} }
private native NativeFormatPlugin[] nativePlugins(); private native NativeFormatPlugin[] nativePlugins();
private native void free();
protected void finalize() throws Throwable {
free();
super.finalize();
}
} }