Fixed a memory leak in NetherFortGen.