uigraphics/AknIcon/srvsrc/AknIconDataPreserver.cpp
changeset 50 c6286dcf6040
parent 0 05e9090e2422
child 107 9f95a5546443
equal deleted inserted replaced
43:1951b3078691 50:c6286dcf6040
   190     
   190     
   191         if ( item->iUserCount == 0 )
   191         if ( item->iUserCount == 0 )
   192             {
   192             {
   193             iHandler->UnprepareIcon( item->iHandle );
   193             iHandler->UnprepareIcon( item->iHandle );
   194             delete item;
   194             delete item;
       
   195             item = 0;
   195             iItems.Remove( index );
   196             iItems.Remove( index );
   196             }
   197             }
   197         }
   198         }
   198     // OK to return also a pointer to a deleted item.
   199     // OK to return also a pointer to a deleted item.
   199     return item;
   200     return item;