[Libreoffice-commits] core.git: extensions/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Thu Jul 16 13:46:42 UTC 2020


 extensions/source/propctrlr/standardcontrol.hxx |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

New commits:
commit a54bfd33dd08569d364d14892866f5d00baa4424
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Jul 16 12:25:06 2020 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Jul 16 15:46:01 2020 +0200

    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 at redhat.com>

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;


More information about the Libreoffice-commits mailing list