unopool.cxx (f6e50924) | unopool.cxx (e262f9e6) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 52 unchanged lines hidden (view full) --- 61SvxUnoDrawPool::SvxUnoDrawPool( SdrModel* pModel ) throw() 62: PropertySetHelper( SvxPropertySetInfoPool::getOrCreate( SVXUNO_SERVICEID_COM_SUN_STAR_DRAWING_DEFAULTS ) ), mpModel( pModel ) 63{ 64 init(); 65} 66 67SvxUnoDrawPool::~SvxUnoDrawPool() throw() 68{ | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 52 unchanged lines hidden (view full) --- 61SvxUnoDrawPool::SvxUnoDrawPool( SdrModel* pModel ) throw() 62: PropertySetHelper( SvxPropertySetInfoPool::getOrCreate( SVXUNO_SERVICEID_COM_SUN_STAR_DRAWING_DEFAULTS ) ), mpModel( pModel ) 63{ 64 init(); 65} 66 67SvxUnoDrawPool::~SvxUnoDrawPool() throw() 68{ |
69 // memory leak #119991: to release the secondary pool created in function SvxUnoDrawPool::init() 70 SfxItemPool* pSecondaryPool=mpDefaultsPool->GetSecondaryPool(); 71 if (pSecondaryPool != NULL) 72 SfxItemPool::Free(pSecondaryPool); 73 // memory leak #119991 74 |
|
69 SfxItemPool::Free(mpDefaultsPool); 70} 71 72void SvxUnoDrawPool::init() 73{ 74 mpDefaultsPool = new SdrItemPool(); 75 SfxItemPool* pOutlPool=EditEngine::CreatePool(); 76 mpDefaultsPool->SetSecondaryPool(pOutlPool); --- 350 unchanged lines hidden --- | 75 SfxItemPool::Free(mpDefaultsPool); 76} 77 78void SvxUnoDrawPool::init() 79{ 80 mpDefaultsPool = new SdrItemPool(); 81 SfxItemPool* pOutlPool=EditEngine::CreatePool(); 82 mpDefaultsPool->SetSecondaryPool(pOutlPool); --- 350 unchanged lines hidden --- |