diff -r 6943d3e9deb7 -r 31aa2ea5cc60 doc/contributions.txt --- a/doc/contributions.txt Wed Mar 21 20:22:19 2012 -0400 +++ b/doc/contributions.txt Tue Apr 03 20:25:49 2012 -0500 @@ -868,6 +868,7 @@ OPEN-1 STORM-1087 STORM-1090 + STORM-1828 Nicoladie Gymnast Nounouch Hapmouche VWR-238 diff -r 6943d3e9deb7 -r 31aa2ea5cc60 indra/newview/llvoavatar.cpp --- a/indra/newview/llvoavatar.cpp Wed Mar 21 20:22:19 2012 -0400 +++ b/indra/newview/llvoavatar.cpp Tue Apr 03 20:25:49 2012 -0500 @@ -7532,12 +7532,16 @@ void LLVOAvatar::dumpArchetypeXML( void* ) { LLAPRFile outfile; - outfile.open(gDirUtilp->getExpandedFilename(LL_PATH_CHARACTER,"new archetype.xml"), LL_APR_WB ); - apr_file_t* file = outfile.getFileHandle() ; + outfile.open(gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS,"new archetype.xml"), LL_APR_WB ); + apr_file_t* file = outfile.getFileHandle(); if (!file) { return; } + else + { + llinfos << "xmlfile write handle obtained : " << gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS,"new archetype.xml") << llendl; + } apr_file_printf( file, "\n" ); apr_file_printf( file, "\n" ); @@ -7577,6 +7581,11 @@ } apr_file_printf( file, "\t\n" ); apr_file_printf( file, "\n\n" ); + //explictly close the file if it is still open which it should be + if (file) + { + outfile.close(); + } }