--- a/omadrm/drmengine/notifier/src/DRMNotifierSession.cpp Thu Aug 19 10:12:10 2010 +0300
+++ b/omadrm/drmengine/notifier/src/DRMNotifierSession.cpp Tue Aug 31 15:29:38 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 );