omadrm/drmengine/notifier/src/DRMNotifierSession.cpp
changeset 49 69d8e75812b7
parent 23 493788a4a8a4
child 84 b09186059647
--- a/omadrm/drmengine/notifier/src/DRMNotifierSession.cpp	Fri Jun 11 15:44:45 2010 +0300
+++ b/omadrm/drmengine/notifier/src/DRMNotifierSession.cpp	Thu Jun 24 12:39:58 2010 +0300
@@ -142,7 +142,7 @@
 
     if( !iIsListening || iMessageQueue.Count() )
         {
-        iMessageQueue.Append( aMessage );
+        iMessageQueue.AppendL ( aMessage );
         return ETrue;
         }
     NotifyL( aMessage, EFalse );
@@ -274,8 +274,9 @@
 
     if( !iIsInStorage )
         {
-        iIsInStorage = ETrue;
-        iStorage->AddSession( this );
+
+        User::LeaveIfError( iStorage->AddSession( this ) );
+        iIsInStorage = ETrue;        
         }
 
     // Check if there are any notifications in queue if so process first one
@@ -354,7 +355,7 @@
     content->iContentID = NULL;
     content->iEventType = eventType;
 
-    iContentIDList.Append( content );
+    iContentIDList.AppendL ( content );
 
     aMessage.Complete( KErrNone );
     }
@@ -422,7 +423,7 @@
     content->iContentID = contentID;
     content->iEventType = eventType;
 
-    iContentIDList.Append( content );
+    iContentIDList.AppendL ( content );
 
     CleanupStack::Pop();
     aMessage.Complete( KErrNone );