Fix memory leak.

Change-Id: I90e419d19f4565f7f20603358308fd7aeba83190
This commit is contained in:
Kohei Yoshida 2013-05-14 16:25:41 -04:00
parent 504615c541
commit 063d91ee77
2 changed files with 4 additions and 1 deletions

View file

@ -35,6 +35,8 @@
#include "rtl/ref.hxx" #include "rtl/ref.hxx"
#include "scdllapi.h" #include "scdllapi.h"
#include <boost/noncopyable.hpp>
class EditEngine; class EditEngine;
class EditTextObject; class EditTextObject;
class SvxEditEngineForwarder; class SvxEditEngineForwarder;
@ -110,7 +112,7 @@ public:
// ScHeaderFooterTextData: shared data between sub objects of a ScHeaderFooterTextObj // ScHeaderFooterTextData: shared data between sub objects of a ScHeaderFooterTextObj
class ScHeaderFooterTextData class ScHeaderFooterTextData : boost::noncopyable
{ {
private: private:
EditTextObject* mpTextObj; EditTextObject* mpTextObj;

View file

@ -200,6 +200,7 @@ ScHeaderFooterTextData::~ScHeaderFooterTextData()
delete pForwarder; delete pForwarder;
delete pEditEngine; delete pEditEngine;
delete mpTextObj;
} }
SvxTextForwarder* ScHeaderFooterTextData::GetTextForwarder() SvxTextForwarder* ScHeaderFooterTextData::GetTextForwarder()