Fix memory leak in config menu; fix crash when changing map with allies, no mouse move when talking to npcs