Properly dispose of JNA functionality. Called when this class is finalized and also from JNI when JNA's native shared library is unloaded.
()
| 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 |
no test coverage detected