11. In no case shall the defendant be discharged, either before or after judgment, except by depositing in the office of the court the amount of the fine and costs. The prothonotary or clerk shall thereafter distribute the amount so deposited, according to law.
R. S. 1964, c. 34, s. 11.