Hi Carsten,

I understand the cause of crash regarding issue86098 with your help.
Now, I do some changes which is attachment in the "layoutmanger.cxx",
Please, review it.

I think while the Layout manger is destroyed,The current misc options
doesn't remove current layout manger's listeners.
in other words, the current layout manger 's listener is removed, while
the Layout manger is destroyed. as stated above is what I understand. if
you have good suggestion , please tell me.

Thanks and Best Regards,
Shizhoubo.



--- layoutmanager.cxx   2007-08-03 01:03:44.000000000 +0800
+++ layoutmanager_new.cxx       2008-03-06 14:30:54.000000000 +0800
@@ -487,6 +487,14 @@
 
 LayoutManager::~LayoutManager()
 {
+    //added by shizhoubo for issue86098
+       if ( m_pMiscOptions )
+       {
+               m_pMiscOptions->RemoveListener( LINK( this, LayoutManager, 
OptionsChanged ) );
+               delete m_pMiscOptions;
+               m_pMiscOptions = 0;
+       }
+    //end for issue86098
     m_aAsyncLayoutTimer.Stop();
 }
 
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to