Washer-dryer is soiled.
Run a 95 °C wash programme and add some machine cleaner.
Make sure that you wash at a temperature of at least 75 °C at least once a month.
Do not use colour detergent or liquid detergent all the time. Alternatively, add bleaching agent regularly.