imagehandlingutilities/thumbnailmanager/thumbnailserver/src/thumbnailfetchedchecker.cpp
changeset 33 221be23823c5
parent 31 d429f823a6b7
child 34 1c05ae5a7e41
equal deleted inserted replaced
31:d429f823a6b7 33:221be23823c5
    60         {
    60         {
    61         TInt ret = iNotFetched.FindInOrder( entry, CEntry::FindCB );
    61         TInt ret = iNotFetched.FindInOrder( entry, CEntry::FindCB );
    62         if ( ret != KErrNotFound )
    62         if ( ret != KErrNotFound )
    63             {
    63             {
    64             TN_DEBUG1( "CThumbnailFetchedChecker::LastFetchResult() -> error found");
    64             TN_DEBUG1( "CThumbnailFetchedChecker::LastFetchResult() -> error found");
       
    65             delete entry;
    65             entry = NULL;
    66             entry = NULL;
    66             delete entry;
       
    67 
       
    68             return iNotFetched[ ret ]->iError;
    67             return iNotFetched[ ret ]->iError;
    69             }
    68             }
    70         }
    69         }
    71 
    70 
    72     delete entry;        
    71     delete entry;        
    92             TInt i = iNotFetched.FindInOrder( entry, CEntry::FindCB );
    91             TInt i = iNotFetched.FindInOrder( entry, CEntry::FindCB );
    93             if ( i >= 0 )
    92             if ( i >= 0 )
    94                 {
    93                 {
    95                 TN_DEBUG2( "CThumbnailFetchedChecker::LastFetchResult() -> Remove successful results from store %d",  iNotFetched.Count() );
    94                 TN_DEBUG2( "CThumbnailFetchedChecker::LastFetchResult() -> Remove successful results from store %d",  iNotFetched.Count() );
    96                 delete iNotFetched[ i ];
    95                 delete iNotFetched[ i ];
       
    96                 iNotFetched[ i ] = NULL;
    97                 iNotFetched.Remove( i );
    97                 iNotFetched.Remove( i );
    98                 }
    98                 }
    99             }
    99             }
   100         entry = NULL;
   100         entry = NULL;
   101         delete entry;
   101         delete entry;
   153         ret = iNotFetched.FindInOrder( aUri, CEntry::FindCBUri );
   153         ret = iNotFetched.FindInOrder( aUri, CEntry::FindCBUri );
   154         if ( ret >= 0 )
   154         if ( ret >= 0 )
   155             {
   155             {
   156             TN_DEBUG1( "CThumbnailFetchedChecker::DeleteFetchResult() -> Deteled URI from fetched list" );	
   156             TN_DEBUG1( "CThumbnailFetchedChecker::DeleteFetchResult() -> Deteled URI from fetched list" );	
   157             delete iNotFetched[ ret ];
   157             delete iNotFetched[ ret ];
       
   158             iNotFetched[ ret ] = NULL;
   158             iNotFetched.Remove( ret );
   159             iNotFetched.Remove( ret );
   159             }
   160             }
   160         }
   161         }
   161     while(ret != KErrNotFound );
   162     while(ret != KErrNotFound );
   162     
   163