--- a/syncmlfw/dm/syncagent/src/nsmldmagent.cpp Tue Sep 28 17:53:08 2010 +0530
+++ b/syncmlfw/dm/syncagent/src/nsmldmagent.cpp Fri Oct 15 11:46:45 2010 +0530
@@ -85,6 +85,7 @@
// FOTA
iGenAlerts.ResetAndDestroy();
iGenAlerts.Close();
+
// FOTA end
if(FeatureManager::FeatureSupported(KFeatureIdSapPolicyManagement))
{
@@ -140,7 +141,9 @@
TInt aFinalResult, const TDesC8& aFwCorrelator )
{
CNSmlDMGenericAlert* genAlert = CNSmlDMGenericAlert::NewL ( aFwMgmtUri, aMetaType, aMetaFormat, aFinalResult, aFwCorrelator );
+ CleanupStack::PushL(genAlert);
iGenAlerts.AppendL ( genAlert );
+ CleanupStack::Pop(genAlert);
}
// FOTA end
@@ -160,7 +163,9 @@
void CNSmlDMAgent::SetGenericAlertL ( const TDesC8& aCorrelator, const RArray<CNSmlDMAlertItem>& aItemList )
{
CNSmlDMGenericAlert* genAlert = CNSmlDMGenericAlert::NewL ( aCorrelator, aItemList );
- iGenAlerts.AppendL ( genAlert );
+ CleanupStack::PushL(genAlert);
+ iGenAlerts.AppendL ( genAlert );
+ CleanupStack::Pop(genAlert);
}
//