commondrm/drmbrowserlauncher/src/drmbrowserlauncher.cpp
changeset 84 b09186059647
parent 49 69d8e75812b7
--- a/commondrm/drmbrowserlauncher/src/drmbrowserlauncher.cpp	Tue Sep 28 14:08:58 2010 +0300
+++ b/commondrm/drmbrowserlauncher/src/drmbrowserlauncher.cpp	Thu Oct 14 13:45:23 2010 +0300
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0"
@@ -76,11 +76,11 @@
 		QString urlString = QString::fromUtf16(aUrl.Ptr(), aUrl.Length());
 		QUrl* url = new QUrl(urlString);
 		bool ret = QDesktopServices::openUrl(*url);
+		delete url;
 		if(!ret)
-				{
-				User::Leave(KErrNotFound);
-				}
-			
+		    {
+			User::Leave(KErrNotFound);
+			}
 		}
 
 void DRM::CDrmBrowserLauncher::ConstructL()