Guest User

Untitled

a guest
Jul 15th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. while (count_this--)
  2. {
  3. OH_iterator save_iterator = reap_iterator;
  4.  
  5. UObject* obj = (*save_iterator).second.get();
  6.  
  7. // We want the objecthash to be the holder of the last reference to an
  8. // object when it is deleted - hence the ref_counted_count() check.
  9. if (obj->orphan() && obj->ref_counted_count() == 1)
  10. {
  11. dirty_deleted.insert( cfBEu32(obj->serial_ext) );
  12. hash.erase( save_iterator );
  13. }
  14.  
  15. if (++reap_iterator == hash.end())
  16. {
  17. reap_iterator = hash.begin();
  18. if (reap_iterator == hash.end())
  19. break;
  20. }
  21. }
Add Comment
Please, Sign In to add comment