If the jury find the accused person not guilty, of the offence, the judge shall immediately discharge him or her from custody for that offence.