equal
deleted
inserted
replaced
239 { |
239 { |
240 // No session errors should be sent during deconstruction to avoid possible double deletion |
240 // No session errors should be sent during deconstruction to avoid possible double deletion |
241 iSessionObserver = NULL; |
241 iSessionObserver = NULL; |
242 |
242 |
243 delete iSchemaBuffer; |
243 delete iSchemaBuffer; |
244 iSchemaBuffer = NULL; |
|
245 |
244 |
246 iNotifiers.ResetAndDestroy(); |
245 iNotifiers.ResetAndDestroy(); |
247 iNotifiers.Close(); |
246 iNotifiers.Close(); |
248 |
247 |
249 iSession.Shutdown(); |
248 iSession.Shutdown(); |
253 |
252 |
254 iNamespaceDefs.ResetAndDestroy(); |
253 iNamespaceDefs.ResetAndDestroy(); |
255 iNamespaceDefs.Close(); |
254 iNamespaceDefs.Close(); |
256 |
255 |
257 delete iSessionStartupAO; |
256 delete iSessionStartupAO; |
258 iSessionStartupAO = NULL; |
|
259 |
257 |
260 delete iAsyncHandler; |
258 delete iAsyncHandler; |
261 iAsyncHandler = NULL; |
|
262 } |
259 } |
263 |
260 |
264 void CMdESessionImpl::ConstructL() |
261 void CMdESessionImpl::ConstructL() |
265 { |
262 { |
266 iSessionStartupAO = CMdESessionStartupAO::NewL( *this, iSession ); |
263 iSessionStartupAO = CMdESessionStartupAO::NewL( *this, iSession ); |
360 CMdEObject* obj = aObjects[i]; |
357 CMdEObject* obj = aObjects[i]; |
361 if ( !obj->OpenForModifications() ) |
358 if ( !obj->OpenForModifications() ) |
362 { |
359 { |
363 User::Leave( KErrMdENotLocked ); |
360 User::Leave( KErrMdENotLocked ); |
364 } |
361 } |
365 |
362 items.Append( obj ); |
366 items.AppendL( obj ); |
|
367 } |
363 } |
368 |
364 |
369 UpdateItemsL(items); |
365 UpdateItemsL(items); |
370 |
366 |
371 items.Reset(); |
367 items.Reset(); |
538 { |
534 { |
539 CleanupStack::Pop( schemaBuffer ); |
535 CleanupStack::Pop( schemaBuffer ); |
540 } |
536 } |
541 |
537 |
542 delete iSchemaBuffer; |
538 delete iSchemaBuffer; |
543 iSchemaBuffer = NULL; |
|
544 |
539 |
545 iSchemaBuffer = schemaBuffer; |
540 iSchemaBuffer = schemaBuffer; |
546 |
541 |
547 iNamespaceDefs.ResetAndDestroy(); |
542 iNamespaceDefs.ResetAndDestroy(); |
548 |
543 |
2697 |
2692 |
2698 void CMdESessionImpl::NotifierInError( CMdENotifierAO* aNotifier ) |
2693 void CMdESessionImpl::NotifierInError( CMdENotifierAO* aNotifier ) |
2699 { |
2694 { |
2700 const TInt index = iNotifiers.Find( aNotifier ); |
2695 const TInt index = iNotifiers.Find( aNotifier ); |
2701 delete aNotifier; |
2696 delete aNotifier; |
2702 aNotifier = NULL; |
|
2703 iNotifiers.Remove( index ); |
2697 iNotifiers.Remove( index ); |
2704 } |
2698 } |
2705 |
2699 |
2706 void CMdESessionImpl::ImportSchemaL( const TDesC& aFileName ) |
2700 void CMdESessionImpl::ImportSchemaL( const TDesC& aFileName ) |
2707 { |
2701 { |