xmloff: fix crash in ~XMLParaContext on fdo72541-1.fodt

Change-Id: I3310699020bfea085eb62c50a7d5de25af51c1b1
This commit is contained in:
Michael Stahl 2016-10-06 23:37:51 +02:00
parent e7fac51c77
commit 8daf6707ef

View File

@ -449,6 +449,10 @@ SvXMLImport::~SvXMLImport() throw ()
{
if (mxEventListener.is() && mxModel.is())
mxModel->removeEventListener(mxEventListener);
// clear context stacks first in case of parse error because the context
// class dtors are full of application logic
while (!maFastContexts.empty()) { maFastContexts.pop(); }
while (!maContexts.empty()) { maContexts.pop(); }
}
namespace