From kde-commits Wed Sep 30 22:38:51 2009 From: Frederik Gladhorn Date: Wed, 30 Sep 2009 22:38:51 +0000 To: kde-commits Subject: branches/work/parley-practice/parley/src Message-Id: <1254350331.458204.15718.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=125435033717888 SVN commit 1029860 by gladhorn: delete the component before the document crash-- M +3 -0 parleymainwindow.cpp --- branches/work/parley-practice/parley/src/parleymainwindow.cpp #1029859:1029860 @@ -104,6 +104,9 @@ ParleyMainWindow::~ParleyMainWindow() { + guiFactory()->removeClient(m_currentComponentWindow); + centralWidget()->layout()->removeWidget(m_currentComponentWindow); + delete m_currentComponentWindow; ParleyDocument::destroy(); }