/** Properly dispose of JNA functionality. Called when this class is finalized and also from JNI when JNA's native shared library is unloaded. */ private static void dispose() { CallbackReference.disposeAll(); Memory.disposeAll(); NativeLibrary.disposeAll(); unregisterAll(); jnidispatchPath = null; System.setProperty("jna.loaded", "false"); }
/** Properly dispose of JNA functionality. Called when this class is finalized and also from JNI when JNA's native shared library is unloaded. */ private static void dispose() { CallbackReference.disposeAll(); Memory.disposeAll(); NativeLibrary.disposeAll(); unregisterAll(); jnidispatchPath = null; System.setProperty("jna.loaded", "false"); }