[poppler] poppler/poppler: Catalog.cc,1.14,1.15

Albert Astals Cid aacid at kemper.freedesktop.org
Mon May 8 12:03:53 PDT 2006


Update of /cvs/poppler/poppler/poppler
In directory kemper:/tmp/cvs-serv16906/poppler

Modified Files:
	Catalog.cc 
Log Message:
memleak-- by carlos


Index: Catalog.cc
===================================================================
RCS file: /cvs/poppler/poppler/poppler/Catalog.cc,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- Catalog.cc	18 Jan 2006 22:32:13 -0000	1.14
+++ Catalog.cc	8 May 2006 19:03:51 -0000	1.15
@@ -510,6 +510,7 @@
 GBool NameTree::lookup(UGooString *name, Object *obj)
 {
   Entry **entry;
+  char *cname;
 
   entry = (Entry **) bsearch(name, entries,
 			     length, sizeof(Entry *), Entry::cmp);
@@ -517,7 +518,9 @@
     (*entry)->value.fetch(xref, obj);
     return gTrue;
   } else {
-    printf("failed to look up %s\n", name->getCString());
+    cname = name->getCString();
+    printf("failed to look up %s\n", cname);
+    delete[] cname;
     obj->initNull();
     return gFalse;
   }



More information about the poppler mailing list