Wash affected items as soon as possible with a detergent that removes odor-causing residue instead of simply masking it. Mildew smells often develop when fabrics stay damp for too long. Dry everything completely before storing to prevent the odor from returning.