[poppler] poppler/Annot.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Fri Jul 25 14:16:04 PDT 2008


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

New commits:
commit 006b974d4faae53e6bd51a4281dd923ab1c2d4e8
Author: Albert Astals Cid <aacid at kde.org>
Date:   Fri Jul 25 23:15:11 2008 +0200

    Fix memory leak

diff --git a/poppler/Annot.cc b/poppler/Annot.cc
index 81e2e90..a242761 100644
--- a/poppler/Annot.cc
+++ b/poppler/Annot.cc
@@ -3043,6 +3043,7 @@ void AnnotWidget::generateFieldAppearance() {
     apObj.dictSet("N", &oaRef);
     annot->set("AP", &apObj);
     Dict* d = new Dict(annot);
+    d->decRef();
     Object dictObj;
     dictObj.initDict(d);
 


More information about the poppler mailing list