MCPcopy Create free account
hub / github.com/java-native-access/jna / dispose

Method dispose

src/com/sun/jna/Native.java:345–352  ·  view source on GitHub ↗

Properly dispose of JNA functionality. Called when this class is finalized and also from JNI when JNA's native shared library is unloaded.

()

Source from the content-addressed store, hash-verified

343 JNA's native shared library is unloaded.
344 */
345 private static void dispose() {
346 CallbackReference.disposeAll();
347 Memory.disposeAll();
348 NativeLibrary.disposeAll();
349 unregisterAll();
350 jnidispatchPath = null;
351 System.setProperty("jna.loaded", "false");
352 }
353
354 /** Remove any automatically unpacked native library.
355

Callers 1

finalizeMethod · 0.95

Calls 5

disposeAllMethod · 0.95
disposeAllMethod · 0.95
disposeAllMethod · 0.95
unregisterAllMethod · 0.95
setPropertyMethod · 0.65

Tested by

no test coverage detected