This question is related to a post that showed up on meta.SO today: it seems like (self-)deletion of the question dismisses pending spam flags on answers.
This appears to be a bug, since this post (although on invalidation) says the flags should be preserved and not dismissed.