Here is a link to the California Landlord Tenant Laws. You may find your answer there. As Ron and Helen already asked, why did you wait so long? And Security Deposit is separate from Rent. Your Lease will outline what your rights and duties were in your tenancy.
You did not pay rent for the last 1/2 month your were in the apartment? And your vacancy notice was not a full 30 days notice. It would appear that you and your landlord both have issues with each other in compliance. Yet now that it is nearly a year later?
The link I gave you should also give you guidelines on what you can do if anything.