--- a/phonebookengines/contactsmodel/cntsrv/src/CViewSubSessions.cpp Wed Apr 14 15:45:35 2010 +0300
+++ b/phonebookengines/contactsmodel/cntsrv/src/CViewSubSessions.cpp Tue Apr 27 16:23:35 2010 +0300
@@ -836,7 +836,7 @@
CNamedViewSubSession* CNamedViewSubSession::NewL(CViewManager& aViewManager,const RMessage2& aMessage)
{
CNamedViewSubSession* self=new(ELeave) CNamedViewSubSession(aViewManager);
- CleanupStack::PushL(self);
+ CleanupClosePushL(*self); // CObject: Close will call the destructor.
self->ConstructL(aMessage);
CleanupStack::Pop(); // self.
return self;