--- a/photosgallery/slideshow/engine/effectsrc/shwdefaulteffectmanager.cpp Wed Mar 31 21:31:03 2010 +0300
+++ b/photosgallery/slideshow/engine/effectsrc/shwdefaulteffectmanager.cpp Wed Apr 14 15:57:24 2010 +0300
@@ -196,7 +196,13 @@
/// are cloned as needed
MShwEffect* clone = effect->CloneLC();
iAvailableEffects.AppendL( clone );
- CleanupStack::Pop( clone );
+
+ // This will cause a code scanner warning, but it is not possible to do
+ // CleanupStack::Pop(clone) because the pointer pushed
+ // onto the cleanup stack was either of class CShwZoomAndPanEffect
+ // or a CShwCrossFadeEffect and the object 'clone' is of
+ // class MShwEffect
+ CleanupStack::Pop(); //clone
iEffects.Append( effect );
iEffects.Append( clone );