uigraphics/AknIcon/srvsrc/AknIconDataPreserver.cpp
branchRCL_3
changeset 107 9f95a5546443
parent 106 e4e3998ddda2
equal deleted inserted replaced
106:e4e3998ddda2 107:9f95a5546443
   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;
       
   196             iItems.Remove( index );
   195             iItems.Remove( index );
   197             }
   196             }
   198         }
   197         }
   199     // OK to return also a pointer to a deleted item.
   198     // OK to return also a pointer to a deleted item.
   200     return item;
   199     return item;