Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (count_this--)
- {
- OH_iterator save_iterator = reap_iterator;
- UObject* obj = (*save_iterator).second.get();
- // We want the objecthash to be the holder of the last reference to an
- // object when it is deleted - hence the ref_counted_count() check.
- if (obj->orphan() && obj->ref_counted_count() == 1)
- {
- dirty_deleted.insert( cfBEu32(obj->serial_ext) );
- hash.erase( save_iterator );
- }
- if (++reap_iterator == hash.end())
- {
- reap_iterator = hash.begin();
- if (reap_iterator == hash.end())
- break;
- }
- }
Add Comment
Please, Sign In to add comment