Do you still live there? If so your deposit would still be properly held by your landlord (the prime tenant). Your landlord retains your deposit until the tenancy is terminated. If you have moved, if you had provided proper notice and owed nothing for damages, your landlord would owe a refund of your deposit.

