| Index: fpdfsdk/fpdfdoc_unittest.cpp
|
| diff --git a/fpdfsdk/fpdfdoc_unittest.cpp b/fpdfsdk/fpdfdoc_unittest.cpp
|
| index fc85404dbaee30019f5a694e0be1bc1c27ea0e9d..40457ee4473195b84f7c0a7155fc1de8ac92677c 100644
|
| --- a/fpdfsdk/fpdfdoc_unittest.cpp
|
| +++ b/fpdfsdk/fpdfdoc_unittest.cpp
|
| @@ -80,8 +80,8 @@ class PDFDocTest : public testing::Test {
|
| std::vector<DictObjInfo> info;
|
| for (int i = 0; i < num; ++i) {
|
| // Objects created will be released by the document.
|
| - CPDF_Dictionary* obj = new CPDF_Dictionary();
|
| - info.push_back({m_pIndirectObjs->AddIndirectObject(obj), obj});
|
| + CPDF_Dictionary* obj = m_pIndirectObjs->AddIndirectDictionary();
|
| + info.push_back({obj->GetObjNum(), obj});
|
| }
|
| return info;
|
| }
|
|
|