incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h..@apache.org
Subject svn commit: r1228147 - /incubator/ooo/trunk/main/desktop/source/deployment/dp_persmap.cxx
Date Fri, 06 Jan 2012 12:25:49 GMT
Author: hdu
Date: Fri Jan  6 12:25:49 2012
New Revision: 1228147

URL: http://svn.apache.org/viewvc?rev=1228147&view=rev
Log:
flush early to prevent problem with extension manager not cleaning up its objects

Modified:
    incubator/ooo/trunk/main/desktop/source/deployment/dp_persmap.cxx

Modified: incubator/ooo/trunk/main/desktop/source/deployment/dp_persmap.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/desktop/source/deployment/dp_persmap.cxx?rev=1228147&r1=1228146&r2=1228147&view=diff
==============================================================================
--- incubator/ooo/trunk/main/desktop/source/deployment/dp_persmap.cxx (original)
+++ incubator/ooo/trunk/main/desktop/source/deployment/dp_persmap.cxx Fri Jan  6 12:25:49
2012
@@ -293,6 +293,10 @@ void PersistentMap::put( OString const &
 	typedef std::pair<t_string2string_map::iterator,bool> InsertRC;
 	InsertRC r = m_entries.insert( t_string2string_map::value_type(key,value));
 	m_bIsDirty = r.second;
+	// HACK: flush now as the extension manager does not seem
+	//       to properly destruct this object in some situations
+	if( m_bIsDirty)
+		flush();
 }
 
 //______________________________________________________________________________



Mime
View raw message