--- a/genericopenlibs/posixrealtimeextensions/src/timerserver.cpp Thu Aug 19 11:33:45 2010 +0300
+++ b/genericopenlibs/posixrealtimeextensions/src/timerserver.cpp Tue Aug 31 16:54:36 2010 +0300
@@ -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;
}
// -------------------------------------------------------------------------------