[poppler] poppler/PDFDoc.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Sun May 29 08:15:03 PDT 2011
poppler/PDFDoc.cc | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit 311d69ef2222409859817737c44b8e741289d897
Author: Axel Strübing <axel.struebing at freenet.de>
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 <carlosgc at gnome.org>
// Copyright (C) 2009 Eric Toombs <ewtoombs at uwaterloo.ca>
// Copyright (C) 2009 Kovid Goyal <kovid at kovidgoyal.net>
-// Copyright (C) 2009 Axel Struebing <axel.struebing at freenet.de>
+// Copyright (C) 2009, 2011 Axel Struebing <axel.struebing at freenet.de>
// Copyright (C) 2010 Hib Eris <hib at hiberis.nl>
// Copyright (C) 2010 Jakub Wilk <ubanus at users.sf.net>
// Copyright (C) 2010 Ilya Gorenbein <igorenbein at finjan.com>
@@ -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);
More information about the poppler
mailing list