featuremgmt/featuremgr/src/clientdll/featurecontrol.cpp
branchRCL_3
changeset 10 31a8f755b7fe
parent 8 fa9941cf3867
equal deleted inserted replaced
9:667e88a979d7 10:31a8f755b7fe
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    73 
    73 
    74         TRAPD( err,  tlsData = CFeatMgrTlsData::NewL() );
    74         TRAPD( err,  tlsData = CFeatMgrTlsData::NewL() );
    75         
    75         
    76         if ( err == KErrNone )
    76         if ( err == KErrNone )
    77             {
    77             {
    78             Dll::SetTls( tlsData );
    78             err = Dll::SetTls( tlsData );
       
    79             if (err != KErrNone)
       
    80                 {
       
    81                 delete tlsData;
       
    82                 ERROR_LOG1( "RFeatureControl::Open SetTls error %d ", err );
       
    83 				return err;
       
    84                 }
    79             }
    85             }
    80         else
    86         else
    81             {
    87             {
    82             ERROR_LOG1( "RFeatureControl::Open error %d ", err );
    88             ERROR_LOG1( "RFeatureControl::Open error %d ", err );
    83             return err;
    89             return err;