The purge didn't happen because suddenly the party wanted to get rid of gay members. Gays were persecuted from day one and if Röhm had come out, he would have been gone before the purge. The reason SA was disbanded was because they lost the internal struggle for power in the NSDAP against the SS, which was much more elitist and not rooted in disenfranchised proletariat like SA.
The purge didn't happen because suddenly the party wanted to get rid of gay members. Gays were persecuted from day one and if Röhm had come out, he would have been gone before the purge. The reason SA was disbanded was because they lost the internal struggle for power in the NSDAP against the SS, which was much more elitist and not rooted in disenfranchised proletariat like SA.