commondrm/drmutility/src/DrmUiHandlingImpl.cpp
changeset 2 76350b5be3d8
parent 0 95b198f216e5
child 9 89a1f2bd800d
child 23 493788a4a8a4
--- 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
         {