fix last remaining 'Memory is never released' issue.