diff -r ab526b8cacfb -r 60e492b28869 mmfenh/enhancedmediaclient/Plugins/ProgDLSource/src/ProgDLSource.cpp --- a/mmfenh/enhancedmediaclient/Plugins/ProgDLSource/src/ProgDLSource.cpp Mon Jun 21 16:15:34 2010 +0300 +++ b/mmfenh/enhancedmediaclient/Plugins/ProgDLSource/src/ProgDLSource.cpp Thu Jul 15 19:13:36 2010 +0300 @@ -1114,11 +1114,11 @@ { TInt pos = 0; CancelRequests(); + // we should not delete the iFile, it causes the CAF to delete the rights if they are expired. + // Since the requests will not be deleted if it is still inside RunL() (iState is EProcessing), // iReadRequestPending should not be initialized to 0 always iReadRequestPending = iRequests.Count(); - delete iFile; - iFile = NULL; //iDLFileSize = -1; iSnkBytes=pos; iBufferedDataSize = 0; @@ -1623,7 +1623,8 @@ if(aStatus != KErrNone) { TMMFEvent event(KMMFErrorCategoryControllerGeneralError, aStatus.Int()); - iEventHandler->SendEventToClient(event); + //TODO: Need to send this error back to client. Currently removing this as iEventHandler is never set. + //iEventHandler->SendEventToClient(event); return KErrNone; } else