All fines and forfeitures collected upon conviction or upon forfeiture of bail of any person charged with a violation of any of the provisions of this chapter constituting a misdemeanor, shall be, within 30 days after such fine or forfeiture is collected, forwarded to the State Treasurer. All amounts received from such fines or forfeitures shall be credited to the State General Fund. Failure, refusal, or neglect to comply with the provisions of this section shall constitute misconduct in office and shall be ground for removal therefrom. All fines and forfeitures collected by district courts or municipal courts for violation of ordinances, whether for acts constituting violations of the provisions of this chapter or not, shall be paid into the treasury of such municipality in which the same were collected.