[poppler] poppler/poppler: Catalog.cc, 1.20, 1.21 Form.cc, 1.4, 1.5 Page.cc, 1.18, 1.19

Albert Astals Cid aacid at kemper.freedesktop.org
Mon May 7 11:41:12 PDT 2007


Update of /cvs/poppler/poppler/poppler
In directory kemper:/tmp/cvs-serv22440/poppler

Modified Files:
	Catalog.cc Form.cc Page.cc 
Log Message:
        * Catalog.cc: Fix leak
        * Form.cc: Fix leak, provide empty FormPageWidgets::~FormPageWidgets
        implementation
        * Page.cc: Fix leak


Index: Catalog.cc
===================================================================
RCS file: /cvs/poppler/poppler/poppler/Catalog.cc,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- Catalog.cc	25 Apr 2007 19:59:10 -0000	1.20
+++ Catalog.cc	7 May 2007 18:41:10 -0000	1.21
@@ -207,6 +207,7 @@
     delete baseURI;
   }
   delete pageLabelInfo;
+  delete form;
   metadata.free();
   structTreeRoot.free();
   outline.free();

Index: Form.cc
===================================================================
RCS file: /cvs/poppler/poppler/poppler/Form.cc,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- Form.cc	25 Apr 2007 19:59:10 -0000	1.4
+++ Form.cc	7 May 2007 18:41:10 -0000	1.5
@@ -1089,6 +1089,7 @@
   acroForm->dictSet("NeedAppearances", &obj1);
   catalog->dictSet("AcroForm", acroForm);
   xref->setModifiedObject(catalog, catRef);
+  delete catalog;
 }
 
 
@@ -1174,3 +1175,7 @@
   } 
 }
 
+FormPageWidgets::~FormPageWidgets()
+{
+  // TODO free widgets ?
+}

Index: Page.cc
===================================================================
RCS file: /cvs/poppler/poppler/poppler/Page.cc,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- Page.cc	25 Apr 2007 19:59:10 -0000	1.18
+++ Page.cc	7 May 2007 18:41:10 -0000	1.19
@@ -308,6 +308,7 @@
 }
 
 Page::~Page() {
+  delete pageWidgets;
   delete attrs;
   annots.free();
   contents.free();



More information about the poppler mailing list