diff options
author | László Németh <laszlo.nemeth@collabora.com> | 2015-05-29 16:50:50 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-08-06 12:21:35 +0200 |
commit | 1075c5e96fdc8916c9eb2a25ee67aac4daf03383 (patch) | |
tree | 772ae6314b508db52138b8faaf004f844e85e4c0 /cui | |
parent | a11f3e6dc7252310c05cac2b4101622d86d58774 (diff) |
dispose SfxControllerItem objects correctly
Change-Id: Id5f80e06e5609b4e85f3d6db7bc37aabe6ef0dac
Reviewed-on: https://gerrit.libreoffice.org/15976
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
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 6c3c5498b667..eb0d1067b78e 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; |