(a) Where money is deposited in lieu of bail with a city official, after the forfeiture and final judgment of the court, the city official shall make settlement with the city treasurer who shall deposit the funds to the credit of the city general fund.
(b) Where money is deposited in lieu of bail with a county official, after the forfeiture and final adjournment of the court, the county official shall make settlement with the county treasurer who shall deposit the funds to the credit of the county general fund.