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
fontIDs = NULL;
fontFileIDs = NULL;
fontFileNames = NULL;
fontFileNameLen = 0;
font8Info = NULL;
font16Enc = NULL;
imgIDs = NULL;
......@@ -1022,6 +1023,7 @@ PSOutputDev::PSOutputDev(const char *fileName, PDFDoc *doc, XRef *xrefA, Catalog
haveTextClip = gFalse;
haveCSPattern = gFalse;
t3String = NULL;
psFileNames = NULL;
forceRasterize = forceRasterizeA;
......@@ -1077,6 +1079,7 @@ PSOutputDev::PSOutputDev(PSOutputFunc outputFuncA, void *outputStreamA,
fontIDs = NULL;
fontFileIDs = NULL;
fontFileNames = NULL;
fontFileNameLen = 0;
font8Info = NULL;
font16Enc = NULL;
imgIDs = NULL;
......@@ -1087,6 +1090,7 @@ PSOutputDev::PSOutputDev(PSOutputFunc outputFuncA, void *outputStreamA,
haveTextClip = gFalse;
haveCSPattern = gFalse;
t3String = NULL;
psFileNames = NULL;
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