[poppler] 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 d3d2910f757dfc3e141aed62aa970136f9d7186f
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 95476b5..6c8528d 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