IIRC, the polygonal rifling in the original Glock barrels would lead heavily, potentially resulting in excessive pressures if shot extensively with lead bullets. It was one of the reasons for the popularity of aftermarket barrels with conventional rifling.
Now, how much of an issue this is, I can't say. I've read about some people shooting a limited amount of lead bullets in their polygonally-rifled Glock barrels without issue, but I'd rather err on the side of caution and not take the risk. But that's just me.
I've not heard about the issue of lead bullets in S&W revolvers, but if I had to guess it might have something to do with the new EDM rifling they use. As far as I know, S&W has never given any warning about using lead bullets in their guns.