Fixed memory leak

i was forgetting to delete terrains apparently