avoid crash on document ending before contained table ends

Change-Id: I003b7e00673cd5a4b4f0ed5218e2d30cfef04ffb
This commit is contained in:
Caolán McNamara 2014-08-21 12:59:50 +01:00
parent 98fba3ab36
commit 5a2123376d

View file

@ -5350,6 +5350,8 @@ sal_uLong SwWW8ImplReader::CoreLoad(WW8Glossary *pGloss, const SwPosition &rPos)
UpdatePageDescs(rDoc, nPageDescOffset);
SAL_WARN_IF(mpTableEndPaM, "sw.ww8", "document ended without table ending");
mpTableEndPaM.reset(); //ensure this is deleted before pPaM
delete pPaM, pPaM = 0;
return nErrRet;
}