[PATCH] Fix a bug (memory leak) introduced by the "Dict deep copy constructor" patch.

Julien Rebetez julien at fhtagn.net
Thu Jan 24 06:44:23 PST 2008


---
 poppler/Dict.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/poppler/Dict.cc b/poppler/Dict.cc
index be82890..df79cca 100644
--- a/poppler/Dict.cc
+++ b/poppler/Dict.cc
@@ -101,7 +101,7 @@ void Dict::set(char *key, Object *val) {
   e = find (key);
   if (e) {
     e->val.free();
-    val->copy(&e->val);
+    e->val = *val;
   } else {
     add (copyString(key), val);
   }
-- 
1.5.2.5




More information about the poppler mailing list