PRINT: Fix memory leak
Merge pull request #1356 from geoadmin/dev_fix_print_leak

PRINT: Fix memory leak