omadrm/drmengine/notifier/src/DRMNotifierSession.cpp
changeset 84 b09186059647
parent 49 69d8e75812b7
--- a/omadrm/drmengine/notifier/src/DRMNotifierSession.cpp	Tue Sep 28 14:08:58 2010 +0300
+++ b/omadrm/drmengine/notifier/src/DRMNotifierSession.cpp	Thu Oct 14 13:45:23 2010 +0300
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0"
@@ -355,7 +355,9 @@
     content->iContentID = NULL;
     content->iEventType = eventType;
 
+    CleanupStack::PushL( content );
     iContentIDList.AppendL ( content );
+    CleanupStack::Pop( content );
 
     aMessage.Complete( KErrNone );
     }
@@ -423,7 +425,9 @@
     content->iContentID = contentID;
     content->iEventType = eventType;
 
+    CleanupStack::PushL( content );
     iContentIDList.AppendL ( content );
+    CleanupStack::Pop( content );
 
     CleanupStack::Pop();
     aMessage.Complete( KErrNone );