fix mem leak for multilined text objects
Fix whitespaces
Merge pull request #23 from qehgt/master

Fix memory leak for multilined text objects