xmloff: fix crash in ~XMLParaContext on fdo72541-1.fodt
Change-Id: I3310699020bfea085eb62c50a7d5de25af51c1b1
This commit is contained in:
@@ -449,6 +449,10 @@ SvXMLImport::~SvXMLImport() throw ()
|
|||||||
{
|
{
|
||||||
if (mxEventListener.is() && mxModel.is())
|
if (mxEventListener.is() && mxModel.is())
|
||||||
mxModel->removeEventListener(mxEventListener);
|
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
|
namespace
|
||||||
|
Reference in New Issue
Block a user