and now with erase

This commit is contained in:
Robin Gareus 2016-12-15 10:57:40 +01:00
parent 71bfe79e2c
commit 714da0f68e

View file

@ -203,6 +203,7 @@ AbstractUI<RequestObject>::handle_ui_requests ()
std::list<InvalidationRecord*>::const_iterator tmp = r; std::list<InvalidationRecord*>::const_iterator tmp = r;
++tmp; ++tmp;
delete *r; delete *r;
trash.erase (r);
r = tmp; r = tmp;
} else { } else {
++r; ++r;