diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-05-22 16:40:01 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-05-23 12:31:12 +0100 |
commit | 0102f117880ecc9fb158f8c63321b790bc282e26 (patch) | |
tree | 2a07e28b280b771fa616ce38b9529b50c449551d | |
parent | 867a8eb32e0f75ec495ac5c4ee40c2adf905f5bc (diff) |
fix leak
-rw-r--r-- | sfx2/source/appl/module.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sfx2/source/appl/module.cxx b/sfx2/source/appl/module.cxx index 1b1c84c8f4..0351d46326 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; } } |