Trial court required to conduct hearing for wrongfully convicted client