Properly free loaded and upsampled terrain.