diff -r 2cc01806dc06 -r 940cad2b4a51 gssettingsuis/Gs/GSPDataAccessPointPlugin/src/GSPDataAccessPointPlugin.cpp --- a/gssettingsuis/Gs/GSPDataAccessPointPlugin/src/GSPDataAccessPointPlugin.cpp Wed Sep 15 12:30:49 2010 +0300 +++ b/gssettingsuis/Gs/GSPDataAccessPointPlugin/src/GSPDataAccessPointPlugin.cpp Wed Oct 13 14:51:53 2010 +0300 @@ -207,11 +207,11 @@ if ( iModel->GetDialupAPNameL( ptrBuffer ) != KErrNone || ptrBuffer.Length() == 0 ) { - CleanupStack::PopAndDestroy( name ); - dynamicText = iEikonEnv->AllocReadResourceLC( R_DIALUP_AP_NAME_NONE ); + dynamicText = iEikonEnv->AllocReadResourceL( R_DIALUP_AP_NAME_NONE ); } - aValue.Copy( *dynamicText ); - CleanupStack::PopAndDestroy( dynamicText ); + TPtr bufPtr( dynamicText->Des() ); + aValue.Copy( *dynamicText ); + CleanupStack::PopAndDestroy( name ); }