summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPino Toscano <pino@kde.org>2013-02-18 11:12:56 +0100
committerPino Toscano <pino@kde.org>2013-02-18 11:12:56 +0100
commitfc162c92661df663a802df6b0a1504845d8a30a5 (patch)
treee8c7a9debf9fe5d4fb89df8bb46b853996811731
parent6d61f363293a82cb983d937bfe6cd1021b70365b (diff)
PSOutputDev: initialize fontFileNameLen and psFileNamespoppler-0.18
avoid crashing in ~PSOutputDev when the PSOutputDev instance is not "ok"
-rw-r--r--poppler/PSOutputDev.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/poppler/PSOutputDev.cc b/poppler/PSOutputDev.cc
index 8fd31073..7ad72345 100644
--- a/poppler/PSOutputDev.cc
+++ b/poppler/PSOutputDev.cc
@@ -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;