This method of the DllLib class frees the native memory associated with an object declared using the @dll.struct compiler directive, if that memory would normally have been released by garbage collection. If the object is not declared using @dll.struct, or if the native memory associated with the object is not owned by the garbage-collector, this method does nothing.
public static native void release(Object o);
o | The object to be freed. |