summaryrefslogtreecommitdiffstats
path: root/comphelper
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-09-11 22:34:03 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-09-12 09:10:02 +0100
commitb55910d9ba6b57b621be638917b934300b8f7df3 (patch)
tree9aa8c2822f828daa7ea3aaf180683e1ab2ebad1f /comphelper
parentensure dtor gets called, and fix dtor and namespaces (diff)
downloadcore-b55910d9ba6b57b621be638917b934300b8f7df3.tar.gz
core-b55910d9ba6b57b621be638917b934300b8f7df3.zip
why leak m_pImpl
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/componentmodule.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/comphelper/source/misc/componentmodule.cxx b/comphelper/source/misc/componentmodule.cxx
index c42308c71508..0130cbb9dade 100644
--- a/comphelper/source/misc/componentmodule.cxx
+++ b/comphelper/source/misc/componentmodule.cxx
@@ -84,12 +84,15 @@ namespace comphelper
//=========================================================================
//-------------------------------------------------------------------------
OModule::OModule()
- :m_nClients( 0 )
- ,m_pImpl( new OModuleImpl )
+ : m_nClients(0)
+ , m_pImpl(new OModuleImpl)
{
}
- OModule::~OModule() {}
+ OModule::~OModule()
+ {
+ delete m_pImpl;
+ }
//-------------------------------------------------------------------------
void OModule::registerClient( OModule::ClientAccess )