Commit 96f8731e authored by Albert Astals Cid's avatar Albert Astals Cid

* Catalog.cc: Fix leak

        * Form.cc: Fix leak, provide empty FormPageWidgets::~FormPageWidgets
        implementation
        * Page.cc: Fix leak
parent d46553d6
2007-05-07 Albert Astals Cid <aacid@kde.org>
* Catalog.cc: Fix leak
* Form.cc: Fix leak, provide empty FormPageWidgets::~FormPageWidgets
implementation
* Page.cc: Fix leak
2007-05-01 Albert Astals Cid <aacid@kde.org>
* poppler/Makefile.am: Don't link cairo to all poppler, just to
......
......@@ -207,6 +207,7 @@ Catalog::~Catalog() {
delete baseURI;
}
delete pageLabelInfo;
delete form;
metadata.free();
structTreeRoot.free();
outline.free();
......
......@@ -1089,6 +1089,7 @@ void Form::checkForNeedAppearances (Object *acroForm)
acroForm->dictSet("NeedAppearances", &obj1);
catalog->dictSet("AcroForm", acroForm);
xref->setModifiedObject(catalog, catRef);
delete catalog;
}
......@@ -1174,3 +1175,7 @@ FormPageWidgets::FormPageWidgets (XRef *xrefA, Object* annots, unsigned int page
}
}
FormPageWidgets::~FormPageWidgets()
{
// TODO free widgets ?
}
......@@ -308,6 +308,7 @@ Page::Page(XRef *xrefA, int numA, Dict *pageDict, PageAttrs *attrsA, Form *form)
}
Page::~Page() {
delete pageWidgets;
delete attrs;
annots.free();
contents.free();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment