I don't think this is an example of an ad hominem fallacy. Rather it seem to be tu quoue fallacy (attempting to discredit by asserting hypocrisy. http://en.wikipedia.org/wiki/Tu_quoque) Technically I suppose that is a form of an ad hominem fallacy, but describing it as that seems off to me.
(Not that that's any better.)