diff options
author | László Németh <laszlo.nemeth@collabora.com> | 2015-05-29 16:50:50 +0200 |
---|---|---|
committer | László Németh <laszlo.nemeth@collabora.com> | 2015-05-29 17:01:10 +0200 |
commit | bec67f339b9b000628e2b82e2b38cd1cae37f94a (patch) | |
tree | 86e586a315433facf6fce35e3d96da30600a77dc /cui | |
parent | e008e587ce556fa7567914c5953e4706089ca413 (diff) |
dispose SfxControllerItem objects correctly
Change-Id: Id5f80e06e5609b4e85f3d6db7bc37aabe6ef0dac
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/cuihyperdlg.cxx | 6 | ||||
-rw-r--r-- | cui/source/inc/cuihyperdlg.hxx | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/cui/source/dialogs/cuihyperdlg.cxx b/cui/source/dialogs/cuihyperdlg.cxx index 0587f879f711..1fbe4cd9dbee 100644 --- a/cui/source/dialogs/cuihyperdlg.cxx +++ b/cui/source/dialogs/cuihyperdlg.cxx @@ -42,6 +42,12 @@ SvxHlinkCtrl::SvxHlinkCtrl( sal_uInt16 _nId, SfxBindings & rBindings, SvxHpLinkD pParent = pDlg; } +void SvxHlinkCtrl::dispose() +{ + aRdOnlyForwarder.dispose(); + ::SfxControllerItem::dispose(); +} + void SvxHlinkCtrl::StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ) { diff --git a/cui/source/inc/cuihyperdlg.hxx b/cui/source/inc/cuihyperdlg.hxx index b85633738ddf..08541f81e2e1 100644 --- a/cui/source/inc/cuihyperdlg.hxx +++ b/cui/source/inc/cuihyperdlg.hxx @@ -44,6 +44,7 @@ private : public : SvxHlinkCtrl( sal_uInt16 nId, SfxBindings & rBindings, SvxHpLinkDlg* pDlg); + virtual void dispose() SAL_OVERRIDE; virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ) SAL_OVERRIDE; |