More like stupid Glock owner vs. dog. Don't leave your gun out where your dog can chew on it. Having a chewed up gun will be the least of your problems. Being shot by your own dog is a bigger problem.
But then, as usual, what we have here is an Internet meme, not an actual story that happened with a cite that one can look up.