gustafn
committed
on 20 Aug
make sure to delete tdom document

Delete nodes explicitly, otherwise it survives the end of the proc.