1 --- toolkit/source/layout/vcl/wfield.cxx
2 +++ toolkit/source/layout/vcl/wfield.cxx
3 @@ -420,6 +420,8 @@ public:
5 OSL_TRACE ("%s: deleting ComboBox for window: %p", __FUNCTION__, GetWindow ());
7 + SetClickHdl (Link ());
8 + SetSelectHdl (Link ());
11 ComboBoxImpl::~ComboBoxImpl ()
12 @@ -630,6 +632,8 @@ public:
16 + SetClickHdl (Link ());
17 + SetSelectHdl (Link ());
20 sal_uInt16 ListBox::InsertEntry (String const& rStr, sal_uInt16 nPos)
21 diff --git toolkit/source/layout/vcl/wrapper.cxx toolkit/source/layout/vcl/wrapper.cxx
22 index 31a1fcb..f9c0a4c 100644
23 --- toolkit/source/layout/vcl/wrapper.cxx
24 +++ toolkit/source/layout/vcl/wrapper.cxx
25 @@ -178,7 +178,10 @@ WindowImpl::WindowImpl (Context *context, const PeerHandle &peer, Window *window
26 WindowImpl::~WindowImpl ()
30 + mpWindow->GetWindow ()->SetAccessible (0);
35 VCLXWindow *v = mvclWindow->GetWindowPeer ();
36 @@ -674,10 +677,6 @@ ControlImpl::ControlImpl (Context *context, const PeerHandle &peer, Window *wind
38 ControlImpl::~ControlImpl ()
40 - if ((!!mGetFocusHdl || !!mLoseFocusHdl) && mxWindow.is ())
41 - /* Disposing will be done @ VCLXWindow::dispose () maFocusListeners.disposeAndClear()
42 - don't do it twice */
46 void ControlImpl::SetGetFocusHdl (Link const& link)
47 @@ -701,7 +700,7 @@ void ControlImpl::SetLoseFocusHdl (Link const& link)
49 Link& ControlImpl::GetLoseFocusHdl ()
51 - return mGetFocusHdl;
52 + return mLoseFocusHdl;
55 void ControlImpl::UpdateListening (Link const& link)
56 @@ -713,10 +712,10 @@ void ControlImpl::UpdateListening (Link const& link)
57 mxWindow->addFocusListener (this);
60 -void SAL_CALL ControlImpl::disposing (lang::EventObject const&)
61 +void SAL_CALL ControlImpl::disposing (lang::EventObject const& e)
62 throw (uno::RuntimeException)
64 -/// mxWindow.clear ();
65 + WindowImpl::disposing (e);
68 void SAL_CALL ControlImpl::focusGained (awt::FocusEvent const&)