[poppler] Branch 'poppler-0.14' - poppler/Catalog.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Sat Oct 23 15:13:38 PDT 2010


 poppler/Catalog.cc |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 5ab26b908fde3c1dc9f9a2e091d03c8e6db47f98
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sat Oct 23 23:12:44 2010 +0100

    Do not leak attrs1

diff --git a/poppler/Catalog.cc b/poppler/Catalog.cc
index 2754d68..6feaebe 100644
--- a/poppler/Catalog.cc
+++ b/poppler/Catalog.cc
@@ -238,6 +238,7 @@ int Catalog::readPageTree(Dict *pagesDict, PageAttrs *attrs, int start,
   attrs1 = new PageAttrs(attrs, pagesDict);
   pagesDict->lookup("Kids", &kids);
   if (!kids.isArray()) {
+    delete attrs1;
     error(-1, "Kids object (page %d) is wrong type (%s)",
 	  start+1, kids.getTypeName());
     return start;


More information about the poppler mailing list