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;
++tmp;
delete *r;
trash.erase (r);
r = tmp;
} else {
++r;