featuremgmt/featuremgr/src/clientdll/featmgr.cpp
changeset 55 44f437012c90
parent 0 08ec8eefde2f
equal deleted inserted replaced
51:7d4490026038 55:44f437012c90
     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".
    38     {
    38     {
    39 	FUNC_LOG
    39 	FUNC_LOG
    40 
    40 
    41     if ( !Dll::Tls() )
    41     if ( !Dll::Tls() )
    42         {
    42         {
    43         Dll::SetTls( CFeatMgrTlsData::NewL() );
    43     	CFeatMgrTlsData* fmgrData = CFeatMgrTlsData::NewL();
       
    44     	TInt err = Dll::SetTls(fmgrData);
       
    45     	if(err != KErrNone)
       
    46     		{
       
    47     		delete fmgrData;
       
    48     		User::Leave(err);
       
    49     		}
    44         }
    50         }
    45 
    51 
    46 	// Increase the client count (self)
    52 	// Increase the client count (self)
    47 	TlsData()->IncreaseClientCount();
    53 	TlsData()->IncreaseClientCount();
    48 	}
    54 	}