java_delete
java_delete (javaobject)
This function deletes a Java object reference returned by one of the following functions:
Use java_delete to remove Java object references that are no longer needed. If you do not delete these references, memory leaks may occur.
object = java_constructor("Document", filename)
count = java_instance(object, "countElements")
# the object is no longer in use, delete it
java_delete(object)