summaryrefslogtreecommitdiff
authorMiklos Vajna <vmiklos@suse.cz>2013-06-16 09:13:30 (GMT)
committer Miklos Vajna <vmiklos@suse.cz>2013-06-16 09:18:14 (GMT)
commitc03a1e46460e4255d7709df9ba8147947f66acfb (patch) (side-by-side diff)
tree3b0801d15f6085caf4fa3281253eebabfbd3a5a1
parent216fe5cf3c41713fa2a11731e4c3d514236b2480 (diff)
downloadcore-c03a1e46460e4255d7709df9ba8147947f66acfb.zip
core-c03a1e46460e4255d7709df9ba8147947f66acfb.tar.gz
SwModelTestBase: fix for leaking temporary files
This alone pushes down the number of created /tmp/lu* from 527 to 2 after a single run. Regression from 9b53538a076a2370df975655c8579dfe09cff09b. Change-Id: I5ea2e3da0b89223fb32469af3d59a2a3b246d00f Helped-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--sw/qa/extras/inc/swmodeltestbase.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/qa/extras/inc/swmodeltestbase.hxx b/sw/qa/extras/inc/swmodeltestbase.hxx
index 9f8d8b5..38c5a47 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();