Attempt to fix leak memory in outgame mode