Ask yourself whether the character has flaws and, if so, whether those flaws have a meaningful impact on how the story plays out. If the answer is no, then your character might be a Gary Sue (if male) or a Mary Sue (if female).