找到 - (void) removeUpdateFromHash:(tListEntry*)entry
tHashUpdateEntry * element = NULL;
HASH_FIND_INT(hashForUpdates, &entry->target, element);
if( element ) {
// list entry
DL_DELETE( *element->list, element->entry );
free( element->entry );
// hash entry
id target = element->target;
HASH_DEL( hashForUpdates, element);
free(element);
// target#release should be the last one to prevent
// a possible double-free. eg: If the [target dealloc] might want to remove it itself from there
[target release];
}
沒有留言:
張貼留言