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 |