--- a/policymanagement/policyengine/policyengineserver/src/ElementBase.cpp Tue Sep 28 17:53:08 2010 +0530
+++ b/policymanagement/policyengine/policyengineserver/src/ElementBase.cpp Fri Oct 15 11:46:45 2010 +0530
@@ -568,13 +568,14 @@
{
//create new container for element
TElementContainer * container = new (ELeave) TElementContainer;
-
+ CleanupStack::PushL(container);
//fill container and apppend it to list
container->iElement = aElement;
container->iDeleteWithElement = aDeleteWithElement;
iElements.AppendL( container);
+ CleanupStack::Pop(container); //container
}
// -----------------------------------------------------------------------------