telephonyserverplugins/common_tsy/commontsy/src/mmcustomtsy/CMmCustomTsy.cpp
branchRCL_3
changeset 6 fc69e1e37771
parent 5 7ef16719d8cb
child 7 fe8b59ab9fa0
equal deleted inserted replaced
5:7ef16719d8cb 6:fc69e1e37771
   139     }
   139     }
   140 
   140 
   141 CMmCustomTsy::~CMmCustomTsy()
   141 CMmCustomTsy::~CMmCustomTsy()
   142     {
   142     {
   143 TFLOGSTRING("TSY: CMmCustomTsy::~CMmCustomTsy");
   143 TFLOGSTRING("TSY: CMmCustomTsy::~CMmCustomTsy");
   144     iMmPhoneTsy->SetHomeZoneParamsChecked( EFalse );
   144 
   145 	iFeatureControl.Close();
   145 	iFeatureControl.Close();
   146 	
   146 	
   147     // Delete subsystems
   147     // Delete subsystems
   148     for ( TInt i = 0; ESubTsyIdxMaxNum > i; i++ )
   148     for ( TInt i = 0; ESubTsyIdxMaxNum > i; i++ )
   149         {
   149         {
   150         delete iMmSubTsy[i];
   150         delete iMmSubTsy[i];
   151         }
   151         }
   152 
   152 
   153     if ( iMmSecurityTsy )
   153     // Delete SecurityTsy
   154         {
   154     delete iMmSecurityTsy;
   155         // Delete SecurityTsy
   155 
   156         delete iMmSecurityTsy;
   156     // Delete GSM extensions
   157         }
   157     delete iMmCustomExtInterface;
   158 
   158     
   159     if ( iMmCustomExtInterface )
   159     // delete req handle store
   160         {
   160     delete iTsyReqHandleStore;
   161         // Delete GSM extensions
       
   162         delete iMmCustomExtInterface;
       
   163         }
       
   164 
       
   165     if ( iTsyReqHandleStore )
       
   166         {
       
   167         // delete req handle store
       
   168         delete iTsyReqHandleStore;
       
   169         }
       
   170 
       
   171     iMmSecurityTsy = NULL;
       
   172     iMmCustomExtInterface = NULL;
       
   173     iTsyReqHandleStore = NULL;
       
   174     iISVDialNumberCheckObject = NULL;
       
   175     iCFISCentRep = NULL;
       
   176 
   161 
   177     if ( iMmPhoneTsy )
   162     if ( iMmPhoneTsy )
   178         {
   163         {
       
   164         iMmPhoneTsy->SetHomeZoneParamsChecked( EFalse );
   179         iMmPhoneTsy->SetCustomTsy( NULL );
   165         iMmPhoneTsy->SetCustomTsy( NULL );
   180 
       
   181         // unregister custom tsy in the message manager
   166         // unregister custom tsy in the message manager
   182         iMmPhoneTsy->MessageManager()->DeregisterTsyObject(this);
   167         iMmPhoneTsy->MessageManager()->DeregisterTsyObject(this);
   183         }
   168         }
   184     }
   169     }
   185 
   170