summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2013-06-16 11:13:30 +0200
committerLuboš Luňák <l.lunak@suse.cz>2013-06-28 08:32:28 +0200
commitaa990e919a021a8c8349b029a00c36be1fd0e112 (patch)
tree0ce443d24323ca7e2283bea4a80bd1b01de2866b /sw
parentb5fc4b0ca32d97348df0c427852cb02c8b778be5 (diff)
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> Signed-off-by: Luboš Luňák <l.lunak@suse.cz>
Diffstat (limited to 'sw')
-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 3f0fab8c8545..5963a1bed656 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.
fprintf(stderr, "%s,", pName);
m_nStartTime = osl_getGlobalTimer();