--- 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 )
{