summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-05-22 16:40:01 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-05-23 12:31:12 +0100
commita0ba96170b35469145e648b239081f8e48d9eb39 (patch)
tree9d892cfea5bcae32cc4fb99fd91402f217abf226 /sfx2
parentec1b60d6df9339365723839a9108fb5101bcb797 (diff)
fix leak
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/module.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/sfx2/source/appl/module.cxx b/sfx2/source/appl/module.cxx
index 62e7f0547808..8048e4b85a55 100644
--- a/sfx2/source/appl/module.cxx
+++ b/sfx2/source/appl/module.cxx
@@ -357,10 +357,11 @@ void SfxModule::DestroyModules_Impl()
{
SfxModuleArr_Impl& rModules = *pModules;
for( sal_uInt16 nPos = rModules.Count(); nPos--; )
- {
- SfxModule* pMod = rModules.GetObject(nPos);
- delete pMod;
- }
+ {
+ SfxModule* pMod = rModules.GetObject(nPos);
+ delete pMod;
+ }
+ delete pModules, pModules = 0;
}
}