summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-11-11 02:15:49 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-11-11 03:05:52 +0100
commit2cfe0c6a3010af4a5c9a2971dd05c9437160dd4d (patch)
tree5f8967546660276cd82022ff85e66deb9fe26168 /sw/qa
parent6be5fda2e1af48ba3b994164184d4fcb9091b13b (diff)
we should close the unit test documents in sw
Diffstat (limited to 'sw/qa')
-rw-r--r--sw/qa/core/filters-test.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/qa/core/filters-test.cxx b/sw/qa/core/filters-test.cxx
index cd63ebec9909..22923cc2baae 100644
--- a/sw/qa/core/filters-test.cxx
+++ b/sw/qa/core/filters-test.cxx
@@ -79,7 +79,10 @@ bool SwFiltersTest::load(const rtl::OUString &rFilter, const rtl::OUString &rURL
SwDocShellRef xDocShRef = new SwDocShell;
SfxMedium aSrcMed(rURL, STREAM_STD_READ, true);
aSrcMed.SetFilter(&aFilter);
- return xDocShRef->DoLoad(&aSrcMed);
+ bool bLoaded = xDocShRef->DoLoad(&aSrcMed);
+ if (xDocShRef.Is())
+ xDocShRef->DoClose();
+ return bLoaded;
}
void SwFiltersTest::testCVEs()