Maidenform has swung to a fourth-quarter loss as margins were hit by product discontinuations and other costs.