photosgallery/slideshow/engine/tsrc/t_cshwtimercontrol/t_cshwtimercontrol.cpp
branchRCL_3
changeset 18 bcb43dc84c44
parent 0 4e91876724a2
child 25 191387a8b767
--- a/photosgallery/slideshow/engine/tsrc/t_cshwtimercontrol/t_cshwtimercontrol.cpp	Mon Mar 15 12:40:30 2010 +0200
+++ b/photosgallery/slideshow/engine/tsrc/t_cshwtimercontrol/t_cshwtimercontrol.cpp	Wed Mar 31 21:31:03 2010 +0300
@@ -33,8 +33,7 @@
 T_CShwTimerControl* T_CShwTimerControl::NewL()
     {
     T_CShwTimerControl* self = T_CShwTimerControl::NewLC();
-    CleanupStack::Pop();
-
+    CleanupStack::Pop( self );
     return self;
     }
 
@@ -42,9 +41,7 @@
     {
     T_CShwTimerControl* self = new( ELeave ) T_CShwTimerControl;
     CleanupStack::PushL( self );
-
     self->ConstructL();
-
     return self;
     }
 
@@ -72,7 +69,7 @@
 	{
 	// need to clone the event since the caller goes out of scope
 	iEvent = aEvent->CloneLC();
-	CleanupStack::Pop();
+	CleanupStack::Pop( iEvent );
 	
 	// stop the scheduler loop if its started
 	if( iWait.IsStarted() )