Plugged memory leak in map room gen.