If the defendant has been released on bail, or has deposited money or property instead thereof, and does not appear for judgment when his personal appearance is necessary, the court, in addition to the forfeiture of the undertaking of bail, or of the money or property deposited, must, on application of the prosecuting attorney, direct the issuance of a bench warrant for the arrest of the defendant.
If the defendant, who is on bail, does appear for judgment and judgment is pronounced upon him or probation is granted to him, then the bail shall be exonerated or, if money or property has been deposited instead of bail, it must be returned to the defendant or to the person or persons found by the court to have deposited said money or property on behalf of said defendant.
Ca. Pen. Code § 1195