Revision: 201033 RCL_3 PDK_3.0.3
authorDremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 14 Sep 2010 21:51:42 +0300
branchRCL_3
changeset 26 e78c61e77b1a
parent 25 7e0eff37aedb
Revision: 201033 Kit: 201035
gssettingsuis/Gs/help/data/xhtml.zip
gssettingsuis/Gs/help/inc/cp.hlp.hrh
profilesservices/MediaFileList/Src/mediafilehandler.cpp
Binary file gssettingsuis/Gs/help/data/xhtml.zip has changed
--- a/gssettingsuis/Gs/help/inc/cp.hlp.hrh	Wed Sep 01 12:20:44 2010 +0100
+++ b/gssettingsuis/Gs/help/inc/cp.hlp.hrh	Tue Sep 14 21:51:42 2010 +0300
@@ -126,4 +126,5 @@
 _LIT(KPREDINPUT_HLP_SHORTCUT, "PREDINPUT_HLP_SHORTCUT"); // 
 _LIT(KPREDINPUT_HLP_INPUT, "PREDINPUT_HLP_INPUT"); // 
 _LIT(KPREDINPUT_HLP_INPUT_SETTINGS, "PREDINPUT_HLP_INPUT_SETTINGS"); // 
+_LIT(KPREDINPUT_HLP_VIRT_ITI_SETT, "PREDINPUT_HLP_VIRT_ITI_SETT"); // 
 #endif 
\ No newline at end of file
--- a/profilesservices/MediaFileList/Src/mediafilehandler.cpp	Wed Sep 01 12:20:44 2010 +0100
+++ b/profilesservices/MediaFileList/Src/mediafilehandler.cpp	Tue Sep 14 21:51:42 2010 +0300
@@ -2886,6 +2886,7 @@
 CSearchList::~CSearchList()
     {
     iList.ResetAndDestroy();
+    iList.Close();
     delete iDriveUtil;
     }
 
@@ -3001,7 +3002,7 @@
     TInt count = aQuery->Count( 0 );    
     for( int i = 0; i< count; i++ )
     	{
-        CSearchListItem* item = CSearchListItem::NewL();
+        CSearchListItem* item = CSearchListItem::NewLC();
         error = aQuery->RomFileItem( item, i );
         if ( error == KErrNone )
         	{
@@ -3010,7 +3011,16 @@
             if ( rt != KErrNotFound )
             	{
             	iList.AppendL( item );
+                CleanupStack::Pop( item );
             	}
+            else
+                {
+                CleanupStack::PopAndDestroy( item );
+                }
+            }
+        else
+            {
+            CleanupStack::PopAndDestroy( item );
         	}
     	}
     }
@@ -3030,7 +3040,7 @@
     TInt count = aQuery->Count( 1 );    
     for( int i = 0; i< count; i++ )
         {
-        CSearchListItem* item = CSearchListItem::NewL();
+        CSearchListItem* item = CSearchListItem::NewLC();
         error = aQuery->RomVedioItem( item, i );
         if ( error == KErrNone )
             {
@@ -3039,7 +3049,16 @@
             if ( rt != KErrNotFound )
                 {
                 iList.AppendL( item );
+                CleanupStack::Pop( item );
                 }
+            else
+                {
+                CleanupStack::PopAndDestroy( item );
+                }
+            }
+        else
+            {
+            CleanupStack::PopAndDestroy( item );
             }
         }
     }
@@ -3163,11 +3182,16 @@
         count = aRomList->Count( 0 );
         for ( TInt i=0; i< count; i++ )
             {
-            CSearchListItem* item = CSearchListItem::NewL();
+            CSearchListItem* item = CSearchListItem::NewLC();
             error = aRomList->RomFileItem( item, i );
             if ( error == KErrNone )
                 {
                 iList.AppendL( item );
+                CleanupStack::Pop( item );
+                }
+            else
+                {
+                CleanupStack::PopAndDestroy( item );
                 }
             }
         }
@@ -3176,11 +3200,16 @@
         count = aRomList->Count( 1 );
         for (TInt i = 0; i < count; i++)
             {
-            CSearchListItem* item = CSearchListItem::NewL();
+            CSearchListItem* item = CSearchListItem::NewLC();
             error = aRomList->RomVedioItem(item, i);
             if (error == KErrNone)
                 {
                 iList.AppendL(item);
+                CleanupStack::Pop( item );
+                }
+            else
+                {
+                CleanupStack::PopAndDestroy( item );
                 }
             }
         }