Spencer W. Kimball discusses homosexuality and masturbation in The Miracle of Forgiveness.
Spencer W. Kimball, The Miracle of Forgiveness (Salt Lake City: Bookcraft, 1969), 78
What is more, it too often leads to grievous sin, even to that sin against nature, homosexuality. For, done in private, it evolved often into mutual masturbation—practices with another person of the same sex—and thence into total homosexuality.