diff -r a5a39a295112 -r 8baec10861af xcfw/src/xcfwlocalizer.cpp --- a/xcfw/src/xcfwlocalizer.cpp Wed Sep 01 12:22:09 2010 +0100 +++ b/xcfw/src/xcfwlocalizer.cpp Tue Sep 14 21:55:16 2010 +0300 @@ -138,9 +138,10 @@ if( !BaflUtils::FileExists( aFileSystem, locfile->Des() ) ) { RArray langs; + CleanupClosePushL( langs ); BaflUtils::GetDowngradePathL( aFileSystem, langcode, langs ); //add current language to array for ROM fetching - langs.Append( langcode ); + langs.AppendL( langcode ); TInt current = langs.Count() - 1; do { @@ -165,8 +166,8 @@ } while ( current >= 0 && !BaflUtils::FileExists( aFileSystem, locfile->Des() ) ); } - langs.Reset(); - langs.Close(); + + CleanupStack::PopAndDestroy( &langs ); }