In Melanchthon's Loci, he says that the belief that the Mass benefits others besides the recipient originated in Thomas' Summa, here's the quotation from Loci:
"All Masses are godless, therefore, except those by which consciences are encouraged for the strengthening of faith. A sacrifice is what we offer to God, but we do […]