--- a/syncmlfw/common/sosserver/src/nsmlsoshandler.cpp Thu Aug 19 10:44:50 2010 +0300
+++ b/syncmlfw/common/sosserver/src/nsmlsoshandler.cpp Tue Aug 31 16:04:06 2010 +0300
@@ -813,26 +813,19 @@
CNSmlDMSettings* settings = CNSmlDMSettings::NewLC();
CNSmlDMProfile* prof = settings->ProfileL( iCurrentJob->ProfileId() );
if(prof)
+ {
+ CleanupStack::PushL( prof );
+ if ( iCurrentJob->iPending || prof->IntValue( EDMProfileHidden ))
{
- CleanupStack::PushL( prof );
- }
-
- if ( iCurrentJob->iPending || prof->IntValue( EDMProfileHidden ))
- {
- syncInit = EServerAlerted;
+ syncInit = EServerAlerted;
}
- if ( !iCurrentJob->TransportId() )
- {
- if ( prof )
- {
- iCurrentJob->SetTransportId( prof->IntValue( EDMProfileTransportId ) );
- }
+ if ( !iCurrentJob->TransportId() )
+ {
+ iCurrentJob->SetTransportId( prof->IntValue( EDMProfileTransportId ) );
}
- if(prof)
- {
CleanupStack::PopAndDestroy( prof );
- }
+ }
CleanupStack::PopAndDestroy( settings );