A washing machine (100) comprises a drawer (1) comprising at least one compartment (10a, 10b, 10c) for receiving an agent for treating laundry, a supporting structure (2) on which the drawer can slide and comprising a releasable retaining device (3) delimiting a movement of the drawer, wherein the retaining device comprises a catch portion (31) adapted to engage with a stopping element (13) of the drawer and an operative portion (30) operable in order to disengage the catch portion and projecting from the supporting structure. The releasable retaining device is formed as a single body with the supporting structure.