diff options
-rw-r--r-- | sw/qa/extras/inc/swmodeltestbase.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/qa/extras/inc/swmodeltestbase.hxx b/sw/qa/extras/inc/swmodeltestbase.hxx index 9f8d8b590ad6..38c5a47b01d5 100644 --- a/sw/qa/extras/inc/swmodeltestbase.hxx +++ b/sw/qa/extras/inc/swmodeltestbase.hxx @@ -264,6 +264,8 @@ protected: void load(const char* pDir, const char* pName, bool bCalcLayout = true) { + if (mxComponent.is()) + mxComponent->dispose(); // Output name early, so in the case of a hang, the name of the hanging input file is visible. std::cerr << pName << ","; m_nStartTime = osl_getGlobalTimer(); |