Fixed gamestate memory leak thing.