photosgallery/slideshow/engine/tsrc/t_cshwmusiccontrol/t_cshwmusiccontrol.cpp
branchRCL_3
changeset 13 bcb43dc84c44
parent 0 4e91876724a2
--- a/photosgallery/slideshow/engine/tsrc/t_cshwmusiccontrol/t_cshwmusiccontrol.cpp	Mon Mar 15 12:40:30 2010 +0200
+++ b/photosgallery/slideshow/engine/tsrc/t_cshwmusiccontrol/t_cshwmusiccontrol.cpp	Wed Mar 31 21:31:03 2010 +0300
@@ -36,8 +36,7 @@
 T_CShwMusicControl* T_CShwMusicControl::NewL()
     {
     T_CShwMusicControl* self = T_CShwMusicControl::NewLC();
-    CleanupStack::Pop();
-
+    CleanupStack::Pop( self );
     return self;
     }
 
@@ -45,9 +44,7 @@
     {
     T_CShwMusicControl* self = new( ELeave ) T_CShwMusicControl;
     CleanupStack::PushL( self );
-
     self->ConstructL();
-
     return self;
     }
 
@@ -80,7 +77,7 @@
 void T_CShwMusicControl::SendEventL(MShwEvent* aEvent)
 	{
 	iEvent = aEvent->CloneLC();
-	CleanupStack::Pop();
+	CleanupStack::Pop( iEvent );
 	}
 
 TBool gMusicOnCalled = EFalse;