Destroying objects at appropriate times to free memory.