openoffice-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhan...@apache.org
Subject svn commit: r1351347 - /incubator/ooo/trunk/main/svx/source/unodraw/unopool.cxx
Date Mon, 18 Jun 2012 14:03:25 GMT
Author: zhangjf
Date: Mon Jun 18 14:03:25 2012
New Revision: 1351347

URL: http://svn.apache.org/viewvc?rev=1351347&view=rev
Log:
#119991#, memory leak in function SvxUnoDrawPool::~SvxUnoDrawPool()

Patch by: Huang Chao
Review by: zhangjf

Modified:
    incubator/ooo/trunk/main/svx/source/unodraw/unopool.cxx

Modified: incubator/ooo/trunk/main/svx/source/unodraw/unopool.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/svx/source/unodraw/unopool.cxx?rev=1351347&r1=1351346&r2=1351347&view=diff
==============================================================================
--- incubator/ooo/trunk/main/svx/source/unodraw/unopool.cxx (original)
+++ incubator/ooo/trunk/main/svx/source/unodraw/unopool.cxx Mon Jun 18 14:03:25 2012
@@ -66,6 +66,12 @@ SvxUnoDrawPool::SvxUnoDrawPool( SdrModel
 
 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);
 }
 



Mime
View raw message