On the expiration of the official term of a public officer, or where a vacancy occurs in his office, by death or otherwise, all public stock, bonds, mortgages, and other securities deposited into court and held by him, vest in his successor in office; and all money paid into court and deposited in a bank, trust company or other depository, to his credit, vests in, and must be carried to, the account of his successor in office.
N.Y. State Fin. Law § 181