fix mem leak in html renderer