poppler/Catalog.cc | 1 +
1 file changed, 1 insertion(+)
New commits:
commit d3d2910f757dfc3e141aed62aa970136f9d7186f
Author: Pino Toscano <[email protected]>
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()) {
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler