From kde-commits Sat Feb 28 23:09:08 2009 From: Thomas Zander Date: Sat, 28 Feb 2009 23:09:08 +0000 To: kde-commits Subject: koffice/kword/part Message-Id: <1235862548.064871.1762.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=123586256103091 SVN commit 933451 by zander: Fixes: Crash when closing document BUG:185217 Details: Make sure that the magicCurtain shape is deleted first so it can savely tell its child shapes its no longer their parent. M +1 -1 KWDocument.cpp --- trunk/koffice/kword/part/KWDocument.cpp #933450:933451 @@ -146,12 +146,12 @@ KWDocument::~KWDocument() { + delete m_magicCurtain; saveConfig(); qDeleteAll(m_frameSets); qDeleteAll(m_dataCenterMap); delete m_inlineTextObjectManager; m_inlineTextObjectManager = 0; - delete m_magicCurtain; } void KWDocument::addShape(KoShape *shape)