diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2012-05-11 16:33:53 +0100 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2012-05-11 16:33:53 +0100 |
commit | f9c1df276e998fc754d5c0e416c606cc5404a495 (patch) | |
tree | 46d84be22e3b4e6eb5aa6883f80922770e553a33 | |
parent | 08d715446bb97015d16e085aa8f8c4bd8f73c2cc (diff) |
pdfwrite - memory clean up. Clear outlines
The outline objects are released in write_outline, but the entries in the
device were not previously cleared leaving them pointing to freed memory.
-rw-r--r-- | gs/base/gdevpdf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gs/base/gdevpdf.c b/gs/base/gdevpdf.c index 0e45e8c99..6e9c57990 100644 --- a/gs/base/gdevpdf.c +++ b/gs/base/gdevpdf.c @@ -1745,6 +1745,8 @@ pdf_close(gx_device * dev) pdev->Catalog = 0; pdev->Info = 0; + memset(&pdev->outline_levels, 0x00, MAX_OUTLINE_DEPTH * sizeof(pdf_outline_level_t)); + { /* pdf_open_dcument could set up filters for entire document. Removing them now. */ |