summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfdoc_unittest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/fpdfdoc_unittest.cpp')
-rw-r--r--fpdfsdk/fpdfdoc_unittest.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/fpdfsdk/fpdfdoc_unittest.cpp b/fpdfsdk/fpdfdoc_unittest.cpp
index eb04de6971..e315fd853e 100644
--- a/fpdfsdk/fpdfdoc_unittest.cpp
+++ b/fpdfsdk/fpdfdoc_unittest.cpp
@@ -68,6 +68,13 @@ class PDFDocTest : public testing::Test {
m_pDoc->SetRoot(m_pRootObj.get());
}
+ void TearDown() override {
+ m_pRootObj.reset();
+ m_pIndirectObjs = nullptr;
+ m_pDoc.reset();
+ CPDF_ModuleMgr::Destroy();
+ }
+
std::vector<DictObjInfo> CreateDictObjs(int num) {
std::vector<DictObjInfo> info;
for (int i = 0; i < num; ++i) {