diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-11-11 02:15:49 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-11-11 03:05:52 +0100 |
commit | 2cfe0c6a3010af4a5c9a2971dd05c9437160dd4d (patch) | |
tree | 5f8967546660276cd82022ff85e66deb9fe26168 /sw | |
parent | close file before the first assertion message if loading failed (diff) | |
download | core-2cfe0c6a3010af4a5c9a2971dd05c9437160dd4d.tar.gz core-2cfe0c6a3010af4a5c9a2971dd05c9437160dd4d.zip |
we should close the unit test documents in sw
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/core/filters-test.cxx | 5 |
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() |