diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-07 15:41:45 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-07 17:19:00 +0100 |
commit | 02df624709e9ead4bb46b66e43581990b30332c8 (patch) | |
tree | 5b8fec1b92f8ed3192ddc527c638e2fe179fd1dc /svx | |
parent | ffe828263462188f0af76eb101935ff0feb395dd (diff) |
valgrind: secondary pool leaks here
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/unodraw/unopool.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/svx/source/unodraw/unopool.cxx b/svx/source/unodraw/unopool.cxx index 74e2235b1b8f..c0a46e1e976d 100644 --- a/svx/source/unodraw/unopool.cxx +++ b/svx/source/unodraw/unopool.cxx @@ -69,7 +69,12 @@ SvxUnoDrawPool::SvxUnoDrawPool( SdrModel* pModel ) throw() SvxUnoDrawPool::~SvxUnoDrawPool() throw() { - SfxItemPool::Free(mpDefaultsPool); + if (mpDefaultsPool) + { + SfxItemPool* pOutlPool = mpDefaultsPool->GetSecondaryPool(); + SfxItemPool::Free(mpDefaultsPool); + SfxItemPool::Free(pOutlPool); + } } void SvxUnoDrawPool::init() |