summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--idl/inc/types.hxx2
-rw-r--r--idl/source/objects/types.cxx4
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 );