White vinegar contains acetic acid, which neutralizes odors by killing the bacteria and mildew causing the bad smell.