This episode posits the theory that Leonardo had a homosexual liaison. There has always been speculation about the artist's sexuality and he was indeed arrested for sodomy and was freed (as depicted here). It's also generally thought that the arrest scared da Vinci so much that he remained celibate for the rest of his life.