sysstatemgmt/systemstatemgr/ssm/src/main.cpp
changeset 76 cb32bcc88bad
parent 0 4e1aa6a622a0
--- a/sysstatemgmt/systemstatemgr/ssm/src/main.cpp	Wed Sep 29 15:13:21 2010 +0300
+++ b/sysstatemgmt/systemstatemgr/ssm/src/main.cpp	Fri Oct 08 14:33:25 2010 +0300
@@ -1,4 +1,4 @@
-// Copyright (c) 2007-2009 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"
@@ -37,10 +37,12 @@
 		{
 		PanicNow(KPanicSysStateMgr, EAddDomainHierarchyError);
 		}
-	
+	RLibrary lib;	
+	lib.Load(_L("libc"));
+	CleanupClosePushL(lib);
 	CSsmServer* server = CSsmServer::NewLC(ESsmStartup);
 	sched->Start();
-
+	CleanupStack::PopAndDestroy(&lib);
 	CleanupStack::PopAndDestroy(server);
 	CleanupStack::PopAndDestroy(sched);
 	}