SOUTH CAROLINA

Long story short:
Paid June's rent then told landlord I was leaving... Landlord confirmed my notice by doing a dmg. inspection & changing the locks mid-month... Meanwhile, ex is still living there, and now that he didn't pay Aug. rent landlord is going to evict him... Landlord says is is going to sue for rent through the end of the lease (or until he gets it re-rented)

Questions:
1. Can he sue me for rent even though he changed locks on me mid-June even though I paid June's rent? (All of my stuff was out of there & changing the locks was definately to my benefit -- to protect me from liability for any future damages -- but STILL, it stands to show that I was essentially "prohibited" from there before he had any grounds, i.e. nonpayment, to kick me out)
2. Since the lease was prematurely ended, does he have a right to charge for damages even though the deposit covers them?