fixed: some memory leaks in the text thumbnails.