In the final confrontation, Leo doesn't use fire or ice. He uses his knowledge of the system. As the Glitch King lunges, Leo accesses the "Settings" of the universe. With a final tap on his phantom Android screen, he sets the "Lifebar" of the corruption to zero.