diff options
| author | Oz Linden <oz@lindenlab.com> | 2012-04-13 17:11:19 -0400 |
|---|---|---|
| committer | Oz Linden <oz@lindenlab.com> | 2012-04-13 17:11:19 -0400 |
| commit | c7c7726c6f6c76950d47f9f640993bb80c659300 (patch) | |
| tree | cf5654661a81e331e1b4d14c45ee80b7fa83929c /indra/newview/llvoavatar.cpp | |
| parent | 753e8673c30f7d5c87e0e6e86c36482f9b103983 (diff) | |
| parent | 8d4c6771fdbea274eabc7a2e2606b3b77952cb4a (diff) | |
merge changes for drtvwr-135
Diffstat (limited to 'indra/newview/llvoavatar.cpp')
| -rw-r--r-- | indra/newview/llvoavatar.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index 413eab9888..a7a4281860 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -7537,12 +7537,16 @@ void LLVOAvatar::useBakedTexture( const LLUUID& id ) 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, "<?xml version=\"1.0\" encoding=\"US-ASCII\" standalone=\"yes\"?>\n" ); apr_file_printf( file, "<linden_genepool version=\"1.0\">\n" ); @@ -7582,6 +7586,11 @@ void LLVOAvatar::dumpArchetypeXML( void* ) } apr_file_printf( file, "\t</archetype>\n" ); apr_file_printf( file, "\n</linden_genepool>\n" ); + //explictly close the file if it is still open which it should be + if (file) + { + outfile.close(); + } } |
