summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorPierre-Eric Pelloux-Prayer <pierre-eric@lanedo.com>2013-01-10 16:29:58 +0100
committerNoel Power <noel.power@suse.com>2013-01-11 16:19:19 +0000
commit58aeb8e6aadd8511a700ec1c289bdc229f7592c9 (patch)
treed8a684634605719bbb8171526473408207cb5291 /sw/qa
parent3914d00c32c4226d3a73ffdd8985c887016887e0 (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')
-rw-r--r--sw/qa/extras/inc/swmodeltestbase.hxx5
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()