diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-05-28 08:54:18 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-05-28 08:55:12 +0200 |
commit | f961cf50a7bcdcb173aa835db7bd891841947c31 (patch) | |
tree | 73f5906468d0b911406c7a91d9aa24cc0f02c13e /idl | |
parent | 1d203f2d3f45e3323530826eb5642eb52d1c1909 (diff) |
Fix memory leak
Change-Id: Ie12862f8df701298db51ed45b5c24814a6f94def
Diffstat (limited to 'idl')
-rw-r--r-- | idl/inc/types.hxx | 2 | ||||
-rw-r--r-- | idl/source/objects/types.cxx | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/idl/inc/types.hxx b/idl/inc/types.hxx index 4b08f7143e9c..54f2c1a88686 100644 --- a/idl/inc/types.hxx +++ b/idl/inc/types.hxx @@ -173,6 +173,8 @@ public: const OString& rCName, const OString& rBasicName, const OString& rBasicPostfix ); + virtual ~SvMetaType(); + SvMetaAttributeMemberList & GetAttrList() const; sal_uLong GetAttrCount() const { diff --git a/idl/source/objects/types.cxx b/idl/source/objects/types.cxx index fbf7f3556b09..2916b660b0d3 100644 --- a/idl/source/objects/types.cxx +++ b/idl/source/objects/types.cxx @@ -784,6 +784,10 @@ SvMetaType::SvMetaType( const OString& rName, aBasicPostfix.setString(rBasicPostfix); } +SvMetaType::~SvMetaType() { + delete pAttrList; +} + void SvMetaType::Load( SvPersistStream & rStm ) { SvMetaExtern::Load( rStm ); |