Commit fc162c92 authored by Pino Toscano's avatar Pino Toscano

PSOutputDev: initialize fontFileNameLen and psFileNames

avoid crashing in ~PSOutputDev when the PSOutputDev instance is not "ok"
parent 6d61f363
...@@ -1012,6 +1012,7 @@ PSOutputDev::PSOutputDev(const char *fileName, PDFDoc *doc, XRef *xrefA, Catalog ...@@ -1012,6 +1012,7 @@ PSOutputDev::PSOutputDev(const char *fileName, PDFDoc *doc, XRef *xrefA, Catalog
fontIDs = NULL; fontIDs = NULL;
fontFileIDs = NULL; fontFileIDs = NULL;
fontFileNames = NULL; fontFileNames = NULL;
fontFileNameLen = 0;
font8Info = NULL; font8Info = NULL;
font16Enc = NULL; font16Enc = NULL;
imgIDs = NULL; imgIDs = NULL;
...@@ -1022,6 +1023,7 @@ PSOutputDev::PSOutputDev(const char *fileName, PDFDoc *doc, XRef *xrefA, Catalog ...@@ -1022,6 +1023,7 @@ PSOutputDev::PSOutputDev(const char *fileName, PDFDoc *doc, XRef *xrefA, Catalog
haveTextClip = gFalse; haveTextClip = gFalse;
haveCSPattern = gFalse; haveCSPattern = gFalse;
t3String = NULL; t3String = NULL;
psFileNames = NULL;
forceRasterize = forceRasterizeA; forceRasterize = forceRasterizeA;
...@@ -1077,6 +1079,7 @@ PSOutputDev::PSOutputDev(PSOutputFunc outputFuncA, void *outputStreamA, ...@@ -1077,6 +1079,7 @@ PSOutputDev::PSOutputDev(PSOutputFunc outputFuncA, void *outputStreamA,
fontIDs = NULL; fontIDs = NULL;
fontFileIDs = NULL; fontFileIDs = NULL;
fontFileNames = NULL; fontFileNames = NULL;
fontFileNameLen = 0;
font8Info = NULL; font8Info = NULL;
font16Enc = NULL; font16Enc = NULL;
imgIDs = NULL; imgIDs = NULL;
...@@ -1087,6 +1090,7 @@ PSOutputDev::PSOutputDev(PSOutputFunc outputFuncA, void *outputStreamA, ...@@ -1087,6 +1090,7 @@ PSOutputDev::PSOutputDev(PSOutputFunc outputFuncA, void *outputStreamA,
haveTextClip = gFalse; haveTextClip = gFalse;
haveCSPattern = gFalse; haveCSPattern = gFalse;
t3String = NULL; t3String = NULL;
psFileNames = NULL;
forceRasterize = forceRasterizeA; forceRasterize = forceRasterizeA;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment