[poppler] poppler/XRef.cc

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


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

New commits:
commit 3a549d75acceedfa25dcf79074d0cdfb643c746e
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