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)