--- a/commondrm/drmutility/src/DrmUiHandlingImpl.cpp Thu Jan 07 12:54:19 2010 +0200
+++ b/commondrm/drmutility/src/DrmUiHandlingImpl.cpp Mon Jan 18 20:30:37 2010 +0200
@@ -1612,6 +1612,12 @@
{
permission = iOmaClient.GetActiveRightsL( aIntent, *aContentUri,
reason );
+
+ if( !permission )
+ {
+ User::Leave( KErrCANoPermission); //coverity check
+ }
+
CleanupStack::PushL( permission );
toplevel = permission->TopLevelConstraint();
@@ -3772,9 +3778,9 @@
CAknLaunchAppService* launchAppService( CAknLaunchAppService::NewL(
KUidDRMUI, this, paramList ) );
+ CleanupStack::PushL( launchAppService );
iWait.Start();
- delete launchAppService;
- CleanupStack::PopAndDestroy( paramList );
+ CleanupStack::PopAndDestroy( 2, paramList );
}
else
{