equal
deleted
inserted
replaced
276 |
276 |
277 const TInt err = iBlacklistMemoryTable.Append( item ); // ownership is transferred |
277 const TInt err = iBlacklistMemoryTable.Append( item ); // ownership is transferred |
278 if ( err != KErrNone ) |
278 if ( err != KErrNone ) |
279 { |
279 { |
280 delete item; |
280 delete item; |
|
281 item = NULL; |
281 } |
282 } |
282 |
283 |
283 |
284 |
284 WRITELOG( "RBlacklistClient::AddToMemoryTableL - end" ); |
285 WRITELOG( "RBlacklistClient::AddToMemoryTableL - end" ); |
285 OstTrace0( TRACE_NORMAL, DUP1_RBLACKLISTCLIENT_ADDTOMEMORYTABLEL, "RBlacklistClient::AddToMemoryTableL - end" ); |
286 OstTrace0( TRACE_NORMAL, DUP1_RBLACKLISTCLIENT_ADDTOMEMORYTABLEL, "RBlacklistClient::AddToMemoryTableL - end" ); |
298 const TInt index = GetListIndex( aUri, aMediaId ); |
299 const TInt index = GetListIndex( aUri, aMediaId ); |
299 if ( index >= 0 ) |
300 if ( index >= 0 ) |
300 { |
301 { |
301 CBlacklistItem* item = iBlacklistMemoryTable[index]; |
302 CBlacklistItem* item = iBlacklistMemoryTable[index]; |
302 delete item; |
303 delete item; |
|
304 item = NULL; |
303 iBlacklistMemoryTable.Remove( index ); |
305 iBlacklistMemoryTable.Remove( index ); |
304 } |
306 } |
305 |
307 |
306 WRITELOG( "RBlacklistClient::RemoveFromMemoryTableL - end" ); |
308 WRITELOG( "RBlacklistClient::RemoveFromMemoryTableL - end" ); |
307 OstTrace0( TRACE_NORMAL, DUP1_RBLACKLISTCLIENT_REMOVEFROMMEMORYTABLEL, "RBlacklistClient::RemoveFromMemoryTableL - end" ); |
309 OstTrace0( TRACE_NORMAL, DUP1_RBLACKLISTCLIENT_REMOVEFROMMEMORYTABLEL, "RBlacklistClient::RemoveFromMemoryTableL - end" ); |