summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2017-05-13 00:13:43 +0200
committerAlbert Astals Cid <aacid@kde.org>2017-05-13 00:13:43 +0200
commitb21c5f7741bb0af47c64c042a8586d922d26b47a (patch)
tree448b8fe749d7865e81f37d02ef060449aa0b5880
parente98ca09fafadbf7d37b838ed2f8953dc6a53a034 (diff)
Use initNullAfterMalloc since this is after a greallocn
-rw-r--r--poppler/XRef.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/poppler/XRef.cc b/poppler/XRef.cc
index 2b50f83e..f32546ea 100644
--- a/poppler/XRef.cc
+++ b/poppler/XRef.cc
@@ -1322,7 +1322,7 @@ void XRef::add(int num, int gen, Goffset offs, GBool used) {
for (int i = size; i < num + 1; ++i) {
entries[i].offset = -1;
entries[i].type = xrefEntryFree;
- entries[i].obj.setToNull();
+ entries[i].obj.initNullAfterMalloc();
entries[i].flags = 0;
entries[i].gen = 0;
}