Free memory on destruction.