equal
deleted
inserted
replaced
507 { |
507 { |
508 TRACE_ENTRY_POINT; |
508 TRACE_ENTRY_POINT; |
509 |
509 |
510 // Get a new services object from global data |
510 // Get a new services object from global data |
511 MCalenServices* services = iServicesFactory.NewServicesL(); |
511 MCalenServices* services = iServicesFactory.NewServicesL(); |
512 |
512 CleanupStack::PushL( services ); |
513 // Creates the plugin and transfers ownership of the services |
513 // Creates the plugin and transfers ownership of the services |
514 // object to the plugin. |
514 // object to the plugin. |
515 CCalenCustomisation* plugin = |
515 CCalenCustomisation* plugin = |
516 CCalenCustomisation::CreateImplementationL( aPluginUid, services ); |
516 CCalenCustomisation::CreateImplementationL( aPluginUid, services ); |
517 |
517 CleanupStack::PushL( plugin ); |
518 CleanupStack::PushL( plugin ); |
|
519 |
518 |
520 // the plugin array takes ownership of the plugin |
519 // the plugin array takes ownership of the plugin |
521 AddPluginL( plugin, aPluginUid ); |
520 AddPluginL( plugin, aPluginUid ); |
|
521 |
|
522 // Cleanup |
522 CleanupStack::Pop( plugin ); |
523 CleanupStack::Pop( plugin ); |
|
524 CleanupStack::Pop( services ); |
523 |
525 |
524 |
526 |
525 TRACE_EXIT_POINT; |
527 TRACE_EXIT_POINT; |
526 } |
528 } |
527 |
529 |