summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-10-11 21:35:18 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-10-11 23:35:16 -0400
commit9de0d5c43eefd1b4a7224a649c96f1b2b296b88f (patch)
treef8ec61be3d6270e908440e0ea5d8c56be60b70b7 /svtools
parentbeae1309b98510d2a1dc8f58a287881560ee1a7f (diff)
Fix another crash on exit.
Change-Id: If0f26e2e81e7f22c63b5eaba1e51bf10a7d3b603
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/contnr/treelistbox.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx
index 13ae15ded112..42d926f74a21 100644
--- a/svtools/source/contnr/treelistbox.cxx
+++ b/svtools/source/contnr/treelistbox.cxx
@@ -1651,6 +1651,12 @@ void SvTreeListBox::InitTreeView()
SvTreeListBox::~SvTreeListBox()
{
DBG_DTOR(SvTreeListBox,0);
+
+ pImp->CallEventListeners( VCLEVENT_OBJECT_DYING );
+ delete pImp;
+ delete pLBoxImpl->m_pLink;
+ ClearTabList();
+
delete pEdCtrl;
pEdCtrl = 0;
pModel->RemoveView( this );
@@ -1668,11 +1674,6 @@ SvTreeListBox::~SvTreeListBox()
if( this == pDDTarget )
pDDTarget = 0;
delete pLBoxImpl;
-
- pImp->CallEventListeners( VCLEVENT_OBJECT_DYING );
- delete pImp;
- delete pLBoxImpl->m_pLink;
- ClearTabList();
}
void SvTreeListBox::SetExtendedWinBits( ExtendedWinBits _nBits )