uiacceltk/hitchcock/plugins/alfoogmplugin/src/alfoogmplugin.cpp
branchRCL_3
changeset 17 c9d868f1e20c
parent 8 46927d61fef3
child 18 1801340c26a2
equal deleted inserted replaced
15:cd0ae4656946 17:c9d868f1e20c
    88 // Creates plugin.
    88 // Creates plugin.
    89 // -----------------------------------------------------------------------------
    89 // -----------------------------------------------------------------------------
    90 //
    90 //
    91 TAny* CreatePlugin()
    91 TAny* CreatePlugin()
    92     {
    92     {
    93     CAlfOogmMonitorPlugin* plugin = new(ELeave) CAlfOogmMonitorPlugin;
    93     CAlfOogmMonitorPlugin* plugin = new CAlfOogmMonitorPlugin;
    94     CleanupStack::PushL(plugin);
    94     if ( plugin )
    95     plugin->ConstructL();
    95         {
    96     CleanupStack::Pop(plugin);
    96         TRAPD( err, plugin->ConstructL() );
       
    97         if ( err != KErrNone )
       
    98             {
       
    99             delete plugin;
       
   100             plugin = NULL;
       
   101             }
       
   102         }
    97     return plugin;
   103     return plugin;
    98     }
   104     }
    99 
   105 
   100 // -----------------------------------------------------------------------------
   106 // -----------------------------------------------------------------------------
   101 // Implementation table for plugin.
   107 // Implementation table for plugin.