fix mem leak for multilined text objects