diff options
author | Carsten Driesner <cd@openoffice.org> | 2009-11-26 14:14:53 +0000 |
---|---|---|
committer | Carsten Driesner <cd@openoffice.org> | 2009-11-26 14:14:53 +0000 |
commit | 84c0ebe7d3e7dbc3796967d52f9535fecc9e6947 (patch) | |
tree | fb22bb2f4a4a862d8be78d39c843d6d21b65385f /framework | |
parent | f565a4b3d9b47ca3336df4f8d8d56d4e2dcceec5 (diff) |
#i107087# Remove event listener from tab window on TabWindowService dtor
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/services/tabwindowservice.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/framework/source/services/tabwindowservice.cxx b/framework/source/services/tabwindowservice.cxx index af026ee2afb0..dfce492ddcd7 100644 --- a/framework/source/services/tabwindowservice.cxx +++ b/framework/source/services/tabwindowservice.cxx @@ -144,6 +144,11 @@ TabWindowService::TabWindowService( const css::uno::Reference< css::lang::XMulti //***************************************************************************************************************** TabWindowService::~TabWindowService() { + // SAFE-> + ResetableGuard aGuard(m_aLock); + + if (m_pTabWin) + m_pTabWin->RemoveEventListener( LINK( this, TabWindowService, EventListener ) ); } //***************************************************************************************************************** |