[PATCH] Fix a memory leak in PDFDoc::writeTrailer
Julien Rebetez
julien at fhtagn.net
Thu Jan 24 07:12:00 PST 2008
---
poppler/PDFDoc.cc | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/poppler/PDFDoc.cc b/poppler/PDFDoc.cc
index 612f320..936e03b 100644
--- a/poppler/PDFDoc.cc
+++ b/poppler/PDFDoc.cc
@@ -823,4 +823,6 @@ void PDFDoc::writeTrailer (Guint uxrefOffset, int uxrefSize, OutStream* outStr,
outStr->printf( "\r\nstartxref\r\n");
outStr->printf( "%i\r\n", uxrefOffset);
outStr->printf( "%%%%EOF\r\n");
+
+ delete trailerDict;
}
--
1.5.2.5
--------------040108050904040305030702--
More information about the poppler
mailing list