Revision: 201033 RCL_3 PDK_3.0.3
authorDremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 14 Sep 2010 21:19:36 +0300
branchRCL_3
changeset 20 ea11b8c1e6a4
parent 19 cd54903d48da
Revision: 201033 Kit: 201035
help/data/xhtml.zip
profilesapplication/Profiles/ProfileApp/SettingsViewSrc/CProfilePlayingVolumeSettingPage.cpp
profilesapplication/Profiles/ProfileApp/UIsrc/CProfileMainView.cpp
Binary file help/data/xhtml.zip has changed
--- a/profilesapplication/Profiles/ProfileApp/SettingsViewSrc/CProfilePlayingVolumeSettingPage.cpp	Wed Sep 01 12:30:29 2010 +0100
+++ b/profilesapplication/Profiles/ProfileApp/SettingsViewSrc/CProfilePlayingVolumeSettingPage.cpp	Tue Sep 14 21:19:36 2010 +0300
@@ -205,6 +205,13 @@
 //
 void CProfilePlayingVolumeSettingPage::CheckRingingToneTypeL()
 	{
+    // If the preview tone is not NULL, delete it.
+    if ( iPreviewTone )
+        {
+        delete iPreviewTone;
+        iPreviewTone = NULL;
+        }
+    
 	// Get default tone from cenrep
 	TFileName defaultTone;
 	CRepository* cenrep = CRepository::NewL( KCRUidProfileEngine );
--- a/profilesapplication/Profiles/ProfileApp/UIsrc/CProfileMainView.cpp	Wed Sep 01 12:30:29 2010 +0100
+++ b/profilesapplication/Profiles/ProfileApp/UIsrc/CProfileMainView.cpp	Tue Sep 14 21:19:36 2010 +0300
@@ -472,6 +472,7 @@
 			CAknErrorNote* note = new( ELeave ) CAknErrorNote( ETrue );
 			note->ExecuteLD( *errorText );
 			CleanupStack::PopAndDestroy( errorText );
+            CleanupStack::PopAndDestroy( expiryTime );
     		return;
     		}