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

Pino Toscano pino at kemper.freedesktop.org
Sat Jan 10 15:51:42 PST 2009


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

New commits:
commit 1b15715c501a4843396df73ca7965fd2d4078c9c
Author: Pino Toscano <pino at kde.org>
Date:   Sun Jan 11 00:40:46 2009 +0100

    fix a (relatively small) memory leak when asking for a document-level JS

diff --git a/poppler/Catalog.cc b/poppler/Catalog.cc
index 025c8a9..8fc66dc 100644
--- a/poppler/Catalog.cc
+++ b/poppler/Catalog.cc
@@ -453,6 +453,7 @@ GooString *Catalog::getJS(int i)
     obj.free();
     return 0;
   }
+  obj2.free();
   obj.dictLookup("JS", &obj2);
   GooString *js = 0;
   if (obj2.isString()) {


More information about the poppler mailing list