photosgallery/slideshow/engine/tsrc/t_cshwviewcontrol/t_cshwviewcontrol.cpp
branchRCL_3
changeset 13 bcb43dc84c44
parent 0 4e91876724a2
--- a/photosgallery/slideshow/engine/tsrc/t_cshwviewcontrol/t_cshwviewcontrol.cpp	Mon Mar 15 12:40:30 2010 +0200
+++ b/photosgallery/slideshow/engine/tsrc/t_cshwviewcontrol/t_cshwviewcontrol.cpp	Wed Mar 31 21:31:03 2010 +0300
@@ -45,8 +45,7 @@
 T_CShwViewControl* T_CShwViewControl::NewL()
     {
     T_CShwViewControl* self = T_CShwViewControl::NewLC();
-    CleanupStack::Pop();
-
+    CleanupStack::Pop( self );
     return self;
     }
 
@@ -83,7 +82,7 @@
 	{
 	// need to clone the event since the caller goes out of scope
 	iEvent = aEvent->CloneLC();
-	CleanupStack::Pop();
+	CleanupStack::Pop( iEvent );
 	}
 
 const TInt KTestTransitionDuration = 987;