Fixed a buffer overrun in MAP::LoadRoomEvent().
Fixed a few potential memory leaks.