# HG changeset patch # User Dremov Kirill (Nokia-D-MSW/Tampere) # Date 1284543049 -10800 # Node ID 2cc01806dc061c9645974791f0d6a98e3cae82ca # Parent e78c61e77b1a1c5384a0b04fe97dd6fc3ad5c67e Revision: 201035 Kit: 201036 diff -r e78c61e77b1a -r 2cc01806dc06 gssettingsuis/Gs/GSPDataAccessPointPlugin/src/GSPDataAccessPointPlugin.cpp --- 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 ); }