diff -r 788b770ce3ae -r 3825cf2dc8c2 locationsystemui/locationsysui/locsuplsettingsui/src/locsuplsettingsadapter.cpp --- a/locationsystemui/locationsysui/locsuplsettingsui/src/locsuplsettingsadapter.cpp Tue Feb 02 10:12:24 2010 +0200 +++ b/locationsystemui/locationsysui/locsuplsettingsui/src/locsuplsettingsadapter.cpp Fri Apr 16 15:23:31 2010 +0300 @@ -448,17 +448,18 @@ { DEBUG( + CLocSUPLSettingsAdapter::AddNewServerL ); CServerParams* serverParam = CServerParams::NewL(); - serverParam->Set( + CleanupStack::PushL( serverParam ); + User::LeaveIfError(serverParam->Set( aServerAddress, aIapName, ETrue, EFalse, // default value aUsageInHomeNw, - ETrue ); + ETrue )); TInt64 slpId; User::LeaveIfError( iSUPLSettings->AddNewServer( serverParam, slpId ) ); - delete serverParam; + CleanupStack::PopAndDestroy(); DEBUG( - CLocSUPLSettingsAdapter::AddNewServerL ); }