From 98688e8b6b0c576c6d8e0f1060c595c320637127 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Fri, 12 Dec 2014 17:00:02 +0000 Subject: [PATCH] deregister during destroy as lower of upper Change-Id: If5bf5ad4579337d2407972c9004e19e7020a8343 --- sw/source/core/layout/ssfrm.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sw/source/core/layout/ssfrm.cxx b/sw/source/core/layout/ssfrm.cxx index 02f834f..f4831ed 100644 --- a/sw/source/core/layout/ssfrm.cxx +++ b/sw/source/core/layout/ssfrm.cxx @@ -367,6 +367,12 @@ void SwFrm::Destroy() delete mpDrawObjs; mpDrawObjs = 0; } + + SwLayoutFrm *pFrm = GetUpper(); + if (pFrm && pFrm->pLower == this) + { + pFrm->pLower = NULL; + } } SwFrm::~SwFrm() -- 1.9.3