sipplugins/sippsipadapter/src/CWPSIPAdapter.cpp
changeset 51 8134400f8f89
parent 39 7cdef8deefa0
equal deleted inserted replaced
48:e3fccba1f02f 51:8134400f8f89
   838                     CSIPManagedProfileRegistry* registry  = 
   838                     CSIPManagedProfileRegistry* registry  = 
   839                         CSIPManagedProfileRegistry::NewLC( *observer );// CS:2
   839                         CSIPManagedProfileRegistry::NewLC( *observer );// CS:2
   840                     CSIPProfile* profile = NULL;
   840                     CSIPProfile* profile = NULL;
   841                     profile = registry->ProfileL( 
   841                     profile = registry->ProfileL( 
   842                         iDatas[counter]->GetProfileId() );
   842                         iDatas[counter]->GetProfileId() );
       
   843                     CleanupStack::PushL( profile );
   843                     CSIPManagedProfile* managedProfile = 
   844                     CSIPManagedProfile* managedProfile = 
   844                         static_cast<CSIPManagedProfile*>( profile );
   845                         static_cast<CSIPManagedProfile*>( profile );
       
   846                     
       
   847                     CleanupStack::PushL( managedProfile ); 
       
   848                     
   845                     managedProfile->SetParameter( 
   849                     managedProfile->SetParameter( 
   846                         KSIPSnapId, (TUint32)snapId );
   850                         KSIPSnapId, (TUint32)snapId );
   847                     registry->SaveL( *managedProfile );
   851                     registry->SaveL( *managedProfile );
       
   852                     
       
   853                     CleanupStack::PopAndDestroy(managedProfile);
       
   854                         
       
   855                     CleanupStack::Pop( profile );
       
   856                     profile = NULL;
       
   857                        
       
   858                     
   848                     CleanupStack::PopAndDestroy( 2, observer ); // CS:0
   859                     CleanupStack::PopAndDestroy( 2, observer ); // CS:0
   849                     }
   860                     }
   850                 else
   861                 else
   851                     {
   862                     {
   852                     iDatas[counter]->SetSnapId( snapId );
   863                     iDatas[counter]->SetSnapId( snapId );