summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/rfb/ScreenSet.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/ScreenSet.h b/common/rfb/ScreenSet.h
index f2df156c..0023d723 100644
--- a/common/rfb/ScreenSet.h
+++ b/common/rfb/ScreenSet.h
@@ -76,7 +76,7 @@ namespace rfb {
inline void remove_screen(rdr::U32 id) {
std::list<Screen>::iterator iter, nextiter;
for (iter = screens.begin();iter != screens.end();iter = nextiter) {
- nextiter = ++iter;
+ nextiter = iter; nextiter++;
if (iter->id == id)
screens.erase(iter);
}