Fixed: Issue 313: Memory leak when printing/print previewing (by wildcroftsecurity)