[poppler] Branch 'poppler-0.8' - poppler/XRef.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Fri Jul 25 14:09:03 PDT 2008


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

New commits:
commit 6a40db15f99db767094d2c260978340588b452b7
Author: Albert Astals Cid <aacid at kde.org>
Date:   Fri Jul 25 23:08:21 2008 +0200

    Free the previous modified object in case it exists

diff --git a/poppler/XRef.cc b/poppler/XRef.cc
index c3c4717..3a5aeaa 100644
--- a/poppler/XRef.cc
+++ b/poppler/XRef.cc
@@ -1036,6 +1036,7 @@ void XRef::setModifiedObject (Object* o, Ref r) {
     error(-1,"XRef::setModifiedObject on unknown ref: %i, %i\n", r.num, r.gen);
     return;
   }
+  entries[r.num].obj.free();
   o->copy(&entries[r.num].obj);
   entries[r.num].updated = true;
 }


More information about the poppler mailing list