photosgallery/slideshow/engine/effectsrc/shwdefaulteffectmanager.cpp
branchRCL_3
changeset 25 191387a8b767
parent 22 2dac0fdba72b
child 30 a60acebbbd9d
--- a/photosgallery/slideshow/engine/effectsrc/shwdefaulteffectmanager.cpp	Wed Apr 14 15:57:24 2010 +0300
+++ b/photosgallery/slideshow/engine/effectsrc/shwdefaulteffectmanager.cpp	Tue Apr 27 16:37:53 2010 +0300
@@ -25,6 +25,7 @@
 
 #include <glxlog.h>
 #include <glxtracer.h>
+#include <shwcleanupwrapper.h>
 
 #include "shweffect.h"
 #include "shwconstants.h"
@@ -219,12 +220,14 @@
     {
     TRACER("CShwDefaultEffectManager::GetActiveEffectsL");
     GLX_LOG_INFO( "CShwDefaultEffectManager::GetActiveEffectsL" );
+    ShwCleanupResetAndDestroyPushL(aEffects);
     // Retrieve each effect
     for( TInt i = 0; i < iEffects.Count(); ++i )
         {
         // append the effect pointer to the given array
         aEffects.AppendL( iEffects[i] );  
         }
+    CleanupStack::Pop(&aEffects);
     }
 
 // -----------------------------------------------------------------------------