photosgallery/imgvwr/src/glxivwrappui.cpp
branchRCL_3
changeset 25 191387a8b767
parent 13 71da52165949
child 56 b023a8d2866a
--- a/photosgallery/imgvwr/src/glxivwrappui.cpp	Wed Apr 14 15:57:24 2010 +0300
+++ b/photosgallery/imgvwr/src/glxivwrappui.cpp	Tue Apr 27 16:37:53 2010 +0300
@@ -239,7 +239,7 @@
 void CGlxIVwrAppUi::GetViewScoringIdsL( RArray<TUid>& aIds ) const
 {
 TRACER("void CGlxIVwrAppUi::GetViewScoringIdsL( RArray<TUid>& aIds ) const");
-
+    CleanupClosePushL(aIds);
 aIds.Reset(); // For maintenance safety
 
 // get current navigational state
@@ -249,10 +249,12 @@
 // to be removed.added by gopa   
 if ( naviState->Levels() >= 1)
     {
-    if (iNavigationalState->ViewingMode() == NGlxNavigationalState::EBrowse) 
+        if (iNavigationalState->ViewingMode()
+                == NGlxNavigationalState::EBrowse)
         {
         // For image viewer collection, goto view mode
-        if (naviState->Id() == TMPXItemId(KGlxCollectionPluginImageViewerImplementationUid))
+            if (naviState->Id() == TMPXItemId(
+                    KGlxCollectionPluginImageViewerImplementationUid))
             {
             aIds.AppendL( TUid::Uid(  KGlxViewingModeView ) );
             }
@@ -280,6 +282,7 @@
     }
 
 CleanupStack::PopAndDestroy( naviState );
+    CleanupStack::Pop(&aIds);
 }
 // ---------------------------------------------------------------------------
 // Handles the foreground events