diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-07-16 12:25:06 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-07-16 15:46:01 +0200 |
commit | a54bfd33dd08569d364d14892866f5d00baa4424 (patch) | |
tree | 4dfe09e8a556062c56b48a65cafbf822c662e7ee /extensions | |
parent | 0790a1445cb7e4fc004d060fa86934c747c3af41 (diff) |
drop m_xFormatter during disposing
Change-Id: Iac3e04e9f3a0efa0a8bf241f7ea6bbc6703b862f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98899
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/propctrlr/standardcontrol.hxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/extensions/source/propctrlr/standardcontrol.hxx b/extensions/source/propctrlr/standardcontrol.hxx index 1eccceb9451e..ead1f26bfb6e 100644 --- a/extensions/source/propctrlr/standardcontrol.hxx +++ b/extensions/source/propctrlr/standardcontrol.hxx @@ -32,8 +32,6 @@ namespace pcr { - - //= OTimeControl typedef CommonBehaviourControl<css::inspection::XPropertyControl, weld::FormattedSpinButton> OTimeControl_Base; class OTimeControl : public OTimeControl_Base @@ -42,6 +40,12 @@ namespace pcr public: OTimeControl(std::unique_ptr<weld::FormattedSpinButton> xWidget, std::unique_ptr<weld::Builder> xBuilder, bool bReadOnly); + virtual void SAL_CALL disposing() override + { + m_xFormatter.reset(); + OTimeControl_Base::disposing(); + } + // XPropertyControl virtual css::uno::Any SAL_CALL getValue() override; virtual void SAL_CALL setValue( const css::uno::Any& _value ) override; |