Simply providing adequate notice does not negate one of their responsibilities with breaking a lease by moving out a month early. Unless your landlord agrees to let you do this or you can find someone (with the landlords permission) to take over your lease, you would still owe for that last month.
Gail