diff options
author | Pierre-Eric Pelloux-Prayer <pierre-eric@lanedo.com> | 2013-01-10 16:29:58 +0100 |
---|---|---|
committer | Noel Power <noel.power@suse.com> | 2013-01-11 16:19:19 +0000 |
commit | 58aeb8e6aadd8511a700ec1c289bdc229f7592c9 (patch) | |
tree | d8a684634605719bbb8171526473408207cb5291 /sw/qa/extras | |
parent | 3914d00c32c4226d3a73ffdd8985c887016887e0 (diff) |
sw unit test: layout dump must be resetted in 'reload' method
Otherwise tests relying on layout dumps will parse the wrong dump.
Change-Id: Ib7b4bc3a231eb3082567a1d1ed38c96835d43add
Reviewed-on: https://gerrit.libreoffice.org/1643
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
Diffstat (limited to 'sw/qa/extras')
-rw-r--r-- | sw/qa/extras/inc/swmodeltestbase.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/qa/extras/inc/swmodeltestbase.hxx b/sw/qa/extras/inc/swmodeltestbase.hxx index 128983ccca95..cc05b2bb39a7 100644 --- a/sw/qa/extras/inc/swmodeltestbase.hxx +++ b/sw/qa/extras/inc/swmodeltestbase.hxx @@ -251,6 +251,11 @@ protected: uno::Reference<lang::XComponent> xComponent(xStorable, uno::UNO_QUERY); xComponent->dispose(); mxComponent = loadFromDesktop(aTempFile.GetURL()); + if (mpXmlBuffer) + { + xmlBufferFree(mpXmlBuffer); + mpXmlBuffer = 0; + } } void finish() |