game: Fix memory leak