[Libreoffice-commits] core.git: Branch 'feature/formula-core-rework' - sc/inc sc/source

Kohei Yoshida kohei.yoshida at gmail.com
Tue May 14 13:23:37 PDT 2013


 sc/inc/textuno.hxx              |    4 +++-
 sc/source/ui/unoobj/textuno.cxx |    1 +
 2 files changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 4038d0000d021673730a28b0e560c6ba613da1ff
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date:   Tue May 14 16:25:41 2013 -0400

    Fix memory leak.
    
    Change-Id: I90e419d19f4565f7f20603358308fd7aeba83190

diff --git a/sc/inc/textuno.hxx b/sc/inc/textuno.hxx
index 19f9eff..e531c8e 100644
--- a/sc/inc/textuno.hxx
+++ b/sc/inc/textuno.hxx
@@ -35,6 +35,8 @@
 #include "rtl/ref.hxx"
 #include "scdllapi.h"
 
+#include <boost/noncopyable.hpp>
+
 class EditEngine;
 class EditTextObject;
 class SvxEditEngineForwarder;
@@ -110,7 +112,7 @@ public:
 
 //  ScHeaderFooterTextData: shared data between sub objects of a ScHeaderFooterTextObj
 
-class ScHeaderFooterTextData
+class ScHeaderFooterTextData : boost::noncopyable
 {
 private:
     EditTextObject* mpTextObj;
diff --git a/sc/source/ui/unoobj/textuno.cxx b/sc/source/ui/unoobj/textuno.cxx
index 77ba10f..3976e21 100644
--- a/sc/source/ui/unoobj/textuno.cxx
+++ b/sc/source/ui/unoobj/textuno.cxx
@@ -200,6 +200,7 @@ ScHeaderFooterTextData::~ScHeaderFooterTextData()
 
     delete pForwarder;
     delete pEditEngine;
+    delete mpTextObj;
 }
 
 SvxTextForwarder* ScHeaderFooterTextData::GetTextForwarder()


More information about the Libreoffice-commits mailing list