poppler/PDFDoc.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
New commits: commit 311d69ef2222409859817737c44b8e741289d897 Author: Axel Strübing <[email protected]> Date: Sun May 29 16:12:29 2011 +0100 Needs to be freed As i said in my last commit comment :D diff --git a/poppler/PDFDoc.cc b/poppler/PDFDoc.cc index a5d57f6..cb16cf8 100644 --- a/poppler/PDFDoc.cc +++ b/poppler/PDFDoc.cc @@ -20,7 +20,7 @@ // Copyright (C) 2008, 2010, 2011 Carlos Garcia Campos <[email protected]> // Copyright (C) 2009 Eric Toombs <[email protected]> // Copyright (C) 2009 Kovid Goyal <[email protected]> -// Copyright (C) 2009 Axel Struebing <[email protected]> +// Copyright (C) 2009, 2011 Axel Struebing <[email protected]> // Copyright (C) 2010 Hib Eris <[email protected]> // Copyright (C) 2010 Jakub Wilk <[email protected]> // Copyright (C) 2010 Ilya Gorenbein <[email protected]> @@ -984,10 +984,11 @@ void PDFDoc::writeTrailer (Guint uxrefOffset, int uxrefSize, OutStream* outStr, obj1.initString(new GooString((const char*)digest, 16)); //create ID array - Object obj2,obj3,obj4,obj5; + Object obj2,obj3,obj5; obj2.initArray(xref); if (incrUpdate) { + Object obj4; //only update the second part of the array xref->getTrailerDict()->getDict()->lookup("ID", &obj4); if (!obj4.isArray()) { @@ -1000,6 +1001,7 @@ void PDFDoc::writeTrailer (Guint uxrefOffset, int uxrefSize, OutStream* outStr, obj2.arrayAdd(&obj1); trailerDict->set("ID", &obj2); } + obj4.free(); } else { //new file => same values for the two identifiers obj2.arrayAdd(&obj1);
_______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
