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

Miklos Vajna vmiklos at collabora.co.uk
Fri May 8 05:23:54 PDT 2015


 svtools/source/control/roadmap.cxx |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit d174c1abc872e2f63b529455c19a92c1063b24a6
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Fri May 8 13:20:24 2015 +0200

    tdf#91157 svtools: fix missing dispose in RoadmapItem causing MM crash
    
    Change-Id: I42a67ac2712dcf124e4fea3c9bbf705f211fe008

diff --git a/svtools/source/control/roadmap.cxx b/svtools/source/control/roadmap.cxx
index 7376c1b..52ac89a 100644
--- a/svtools/source/control/roadmap.cxx
+++ b/svtools/source/control/roadmap.cxx
@@ -57,6 +57,7 @@ namespace svt
 
     public:
         RoadmapItem( ORoadmap& _rParent, const Size& _rItemPlayground );
+        ~RoadmapItem();
 
         void                    SetID( sal_Int16 _ID );
         sal_Int16               GetID() const;
@@ -686,6 +687,12 @@ namespace svt
         mpDescription->Show();
     }
 
+    RoadmapItem::~RoadmapItem()
+    {
+        mpID.disposeAndClear();
+        mpDescription.disposeAndClear();
+    }
+
 
     bool RoadmapItem::Contains( const vcl::Window* _pWindow ) const
     {


More information about the Libreoffice-commits mailing list