photosgallery/slideshow/engine/tsrc/t_cshweffectcontrol/t_cshweffectcontrol.cpp
branchRCL_3
changeset 13 bcb43dc84c44
parent 0 4e91876724a2
child 21 f9e827349359
--- a/photosgallery/slideshow/engine/tsrc/t_cshweffectcontrol/t_cshweffectcontrol.cpp	Mon Mar 15 12:40:30 2010 +0200
+++ b/photosgallery/slideshow/engine/tsrc/t_cshweffectcontrol/t_cshweffectcontrol.cpp	Wed Mar 31 21:31:03 2010 +0300
@@ -48,6 +48,7 @@
 	    User::Leave( aPanic );
 	    }
 	}
+
 // -----------------------------------------------------------------------------
 // <-- Stub for NShwEngine::Panic
 // -----------------------------------------------------------------------------
@@ -56,8 +57,7 @@
 T_CShwEffectControl* T_CShwEffectControl::NewL()
     {
     T_CShwEffectControl* self = T_CShwEffectControl::NewLC();
-    CleanupStack::Pop();
-
+    CleanupStack::Pop( self );
     return self;
     }
 
@@ -132,7 +132,8 @@
 	{
 	// need to clone the event since the caller goes out of scope
 	TInt error = iEvents.Append( aEvent->CloneLC() );
-	CleanupStack::Pop();
+	CleanupStack::Pop(); // aEvent->CloneLC()
+	
 	// check that append succeeded
 	if( error != KErrNone )
 		{