incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhan...@apache.org
Subject svn commit: r1380986 - /incubator/ooo/trunk/main/svx/source/form/fmundo.cxx
Date Wed, 05 Sep 2012 04:44:10 GMT
Author: zhangjf
Date: Wed Sep  5 04:44:09 2012
New Revision: 1380986

URL: http://svn.apache.org/viewvc?rev=1380986&view=rev
Log:
#i120746#, the FormScriptingEnvironment object created in the FmXUndoEnvironment ctor is never
released 

Found by: zhangjf 
Patch by: zhangjf

Modified:
    incubator/ooo/trunk/main/svx/source/form/fmundo.cxx

Modified: incubator/ooo/trunk/main/svx/source/form/fmundo.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/svx/source/form/fmundo.cxx?rev=1380986&r1=1380985&r2=1380986&view=diff
==============================================================================
--- incubator/ooo/trunk/main/svx/source/form/fmundo.cxx (original)
+++ incubator/ooo/trunk/main/svx/source/form/fmundo.cxx Wed Sep  5 04:44:09 2012
@@ -201,6 +201,9 @@ FmXUndoEnvironment::FmXUndoEnvironment(F
 FmXUndoEnvironment::~FmXUndoEnvironment()
 {
 	DBG_DTOR(FmXUndoEnvironment,NULL);
+	if ( !m_bDisposed )   // i120746, call FormScriptingEnvironment::dispose to avoid memory
leak
+		m_pScriptingEnv->dispose(); 
+
 	if (m_pPropertySetCache)
 		delete static_cast<PropertySetInfoCache*>(m_pPropertySetCache);
 }



Mime
View raw message