The county treasurer upon the payment to him or her of any such rental money, after deducting the costs and expenses incident thereto, shall enter the same upon the books of his or her office to the credit of the county general fund.