void dispose()

Release the resources used by this object. The object is no longer usable after this method is called.

Source

void dispose() native "Image_dispose";