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

PRINT: Fix memory leak