[PATCH] Remove call to Object::free after adding the Object to Dict because it would cause bugs after

Julien Rebetez julien at fhtagn.net
Thu Jan 24 07:11:30 PST 2008


---
 poppler/PDFDoc.cc |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/poppler/PDFDoc.cc b/poppler/PDFDoc.cc
index d8d2407..612f320 100644
--- a/poppler/PDFDoc.cc
+++ b/poppler/PDFDoc.cc
@@ -813,12 +813,10 @@ void PDFDoc::writeTrailer (Guint uxrefOffset, int uxrefSize, OutStream* outStr,
 
   obj1.initRef(xref->getRootNum(), xref->getRootGen());
   trailerDict->set("Root", &obj1);
-  obj1.free();
 
   if (incrUpdate) { 
     obj1.initInt(xref->getLastXRefPos());
     trailerDict->set("Prev", &obj1);
-    obj1.free();
   }
   outStr->printf( "trailer\r\n");
   writeDictionnary(trailerDict, outStr);
-- 
1.5.2.5




More information about the poppler mailing list