imagehandlingutilities/thumbnailmanager/thumbnailserver/src/thumbnailfetchedchecker.cpp
equal
deleted
inserted
replaced
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 // ----------------------------------------------------------------------------- |