imagehandlingutilities/thumbnailmanager/thumbnailserver/src/thumbnailfetchedchecker.cpp
branchRCL_3
changeset 28 ff2fb7658ff7
parent 16 85a88bc05e45
child 38 2b4b06654caa
equal deleted inserted replaced
24:f0aa341a25bf 28:ff2fb7658ff7
    94             else 
    94             else 
    95                 {
    95                 {
    96                 if( iNotFetched.Count() < KMaxStoredEntries )
    96                 if( iNotFetched.Count() < KMaxStoredEntries )
    97                     {
    97                     {
    98                     TInt err = iNotFetched.InsertInOrder( entry, CEntry::InsertCB );
    98                     TInt err = iNotFetched.InsertInOrder( entry, CEntry::InsertCB );
    99                     if ( err != KErrNone )
    99                     if ( err == KErrNone )
   100                         {
   100                         {
   101                         delete entry;
   101                         entry = NULL; // owned by array now
   102                         }
   102                         }
   103                     }
   103                     }
   104                 }
   104                 }
       
   105             
       
   106             delete entry;
       
   107             entry = NULL;
   105             }
   108             }
   106         }
   109         }
   107     }
   110     }
   108 
   111 
   109 // -----------------------------------------------------------------------------
   112 // -----------------------------------------------------------------------------