You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by hd...@apache.org on 2012/01/06 13:25:49 UTC
svn commit: r1228147 -
/incubator/ooo/trunk/main/desktop/source/deployment/dp_persmap.cxx
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();
}
//______________________________________________________________________________