[poppler] poppler/Catalog.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Mon Apr 20 14:41:09 PDT 2009


 poppler/Catalog.cc |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 047a8870a8cea9b680080e0d3bf68d0685431233
Author: Albert Astals Cid <aacid at kde.org>
Date:   Mon Apr 20 23:38:53 2009 +0200

    In case of err3 or err2 in readPageTree we need to free kidRef too

diff --git a/poppler/Catalog.cc b/poppler/Catalog.cc
index 6c8528d..a48639f 100644
--- a/poppler/Catalog.cc
+++ b/poppler/Catalog.cc
@@ -14,7 +14,7 @@
 // under GPL version 2 or later
 //
 // Copyright (C) 2005 Kristian Høgsberg <krh at redhat.com>
-// Copyright (C) 2005-2008 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2005-2009 Albert Astals Cid <aacid at kde.org>
 // Copyright (C) 2005 Jeff Muizelaar <jrmuizel at nit.ca>
 // Copyright (C) 2005 Jonathan Blandford <jrb at redhat.com>
 // Copyright (C) 2005 Marco Pesenti Gritti <mpg at redhat.com>
@@ -351,6 +351,7 @@ int Catalog::readPageTree(Dict *pagesDict, PageAttrs *attrs, int start,
   delete page;
  err2:
   kid.free();
+  kidRef.free();
  err1:
   kids.free();
   delete attrs1;


More information about the poppler mailing list