--- a/commsconfig/cscengine/src/cscengcchhandler.cpp Mon Jun 21 15:29:21 2010 +0300
+++ b/commsconfig/cscengine/src/cscengcchhandler.cpp Thu Aug 19 09:45:22 2010 +0300
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2007-2007 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
@@ -140,9 +140,10 @@
EXPORT_C void CCSCEngCCHHandler::SupportedSubServicesL(
TInt aServiceId, TSupportedSubServices& aSupSubServices )
{
+ // Create new cch client for access the latest service info data.
CCchService* service =
- iCchClientApi->GetService( aServiceId );
-
+ CCch::NewLC()->GetService( aServiceId );
+
TBool supported( EFalse );
if ( service )
@@ -159,7 +160,9 @@
service->IsSupported( ECCHVMBxSub, supported );
aSupSubServices.iVmbx = supported;
}
-
+
+ CleanupStack::PopAndDestroy(); // cch
+
CSCENGDEBUG2(
"CCSCEngCCHHandler::SupportedSubServicesL VoIP=%d",
aSupSubServices.iVoIP );