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