--- a/genericopenlibs/posixrealtimeextensions/src/timerserver.cpp Mon May 03 14:06:43 2010 +0300
+++ b/genericopenlibs/posixrealtimeextensions/src/timerserver.cpp Tue Jul 20 16:35:53 2010 +0530
@@ -136,10 +136,12 @@
// -------------------------------------------------------------------------------
void CTimerServer::ConstructL()
{
- iShutdown = new(ELeave) CShutdown;
- CleanupStack::PushL(iShutdown);
- iShutdown->ConstructL();
+ CShutdown* shutdown = new(ELeave) CShutdown;
+ CleanupStack::PushL(shutdown);
+ shutdown->ConstructL();
CleanupStack::Pop();
+ iShutdown = shutdown;
+ shutdown = 0;
}
// -------------------------------------------------------------------------------