genericopenlibs/posixrealtimeextensions/src/timerserver.cpp
branchRCL_3
changeset 57 2efc27d87e1c
parent 56 acd3cd4aaceb
--- a/genericopenlibs/posixrealtimeextensions/src/timerserver.cpp	Tue Aug 31 16:54:36 2010 +0300
+++ b/genericopenlibs/posixrealtimeextensions/src/timerserver.cpp	Wed Sep 01 12:36:54 2010 +0100
@@ -136,12 +136,10 @@
 // -------------------------------------------------------------------------------
 void CTimerServer::ConstructL()
     {
-    CShutdown* shutdown = new(ELeave) CShutdown;
-    CleanupStack::PushL(shutdown);
-    shutdown->ConstructL();
+    iShutdown = new(ELeave) CShutdown;
+    CleanupStack::PushL(iShutdown);
+    iShutdown->ConstructL();
 	CleanupStack::Pop();
-	iShutdown = shutdown;
-	shutdown = 0;
     }
 
 // -------------------------------------------------------------------------------