summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/ww8par.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-08-21 12:59:50 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-08-21 13:07:03 +0100
commit5a2123376dc010ca4e3f0a19d7dbbfaeb25ea963 (patch)
treefefa02d3d9db0a58c089ac44288f55a0ce513d18 /sw/source/filter/ww8/ww8par.cxx
parent98fba3ab3675e19a1260d4e2cddd4bfd6c005118 (diff)
avoid crash on document ending before contained table ends
Change-Id: I003b7e00673cd5a4b4f0ed5218e2d30cfef04ffb
Diffstat (limited to 'sw/source/filter/ww8/ww8par.cxx')
-rw-r--r--sw/source/filter/ww8/ww8par.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx
index 0029154786bd..c065d8ff6597 100644
--- a/sw/source/filter/ww8/ww8par.cxx
+++ b/sw/source/filter/ww8/ww8par.cxx
@@ -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;
}