The landlord would be responsible for the maintence, when there is a written lease, unless and only to the extent that the lease itself makes the tenant responsible; that is, while the landlord would normally be responsible for this, the two parties (landlord and tenant) could contractully agrees that the tenant instead would be responsible.