Kaydet (Commit) f0cc4368 authored tarafından Jian Fang Zhang's avatar Jian Fang Zhang

#119991#, memory leak in function SvxUnoDrawPool::~SvxUnoDrawPool()

Patch by: Huang Chao
Review by: zhangjf
üst 83587cfa
......@@ -66,6 +66,12 @@ SvxUnoDrawPool::SvxUnoDrawPool( SdrModel* pModel ) throw()
SvxUnoDrawPool::~SvxUnoDrawPool() throw()
{
// memory leak #119991: to release the secondary pool created in function SvxUnoDrawPool::init()
SfxItemPool* pSecondaryPool=mpDefaultsPool->GetSecondaryPool();
if (pSecondaryPool != NULL)
SfxItemPool::Free(pSecondaryPool);
// memory leak #119991
SfxItemPool::Free(mpDefaultsPool);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment