[poppler] poppler/Catalog.cc

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


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

New commits:
commit 906e4e15421d8f3f0a825ca767e5eac3169853d6
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 048bfb6..6f0c2a2 100644
--- a/poppler/Catalog.cc
+++ b/poppler/Catalog.cc
@@ -234,6 +234,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