I don't shoot glocks, but when I choose a gun, I make sure the magazine falls out under its own weight when I push the button.
I have had some mags that wouldn't, I take a belt sander to them until they do. If I can't get them to fall, I toss them.
CPT USAR Ret
USAMU Sniper School Oct '78
Distinguished Rifle Badge 1071