policymanagement/pmdmadapter/src/pmadapter.cpp
changeset 73 ae69c2e8bc34
parent 47 dd41e7de3375
--- a/policymanagement/pmdmadapter/src/pmadapter.cpp	Tue Sep 28 17:53:08 2010 +0530
+++ b/policymanagement/pmdmadapter/src/pmadapter.cpp	Fri Oct 15 11:46:45 2010 +0530
@@ -1507,7 +1507,9 @@
 CPmCommand *CPmCommand::NewL( TInt aStatusRef, const TDesC8& aURI, const TDesC8 &aArgument )
 	{
 	CPmCommand *self = new ( ELeave ) CPmCommand( aStatusRef, aURI );
+	CleanupStack::PushL(self);
 	self->ConstructL( aArgument );
+	CleanupStack::Pop(self); //self
 	return self ;
 	}