If the main tenant wishes to leave the property, the rental deposit must first be transferred to the new main tenant.
The new tenant then buys the old tenant's share of the rental deposit and pays it to him/her. The new tenant takes the place of the old one and also takes over all his responsibilities; This also includes repairing any rental damage that may have been caused.
For example: If there is visible damage in the bedroom and the old tenant does not proceed to repair, the new tenant can deduct this damage from the amount that he pays to the old tenant.