summaryrefslogtreecommitdiffstats
path: root/common/rfb
diff options
context:
space:
mode:
authorAdam Tkac <atkac@redhat.com>2010-12-01 10:11:20 +0000
committerAdam Tkac <atkac@redhat.com>2010-12-01 10:11:20 +0000
commite9e338c89dc4a8ea5aecf7ea751ed26a332b2c52 (patch)
tree690736fd1b38da5e3c0ed8186af9e5e0f46d908f /common/rfb
parent3e19438d81778e8104e2658f5a11c40df3eec8cc (diff)
downloadtigervnc-e9e338c89dc4a8ea5aecf7ea751ed26a332b2c52.tar.gz
tigervnc-e9e338c89dc4a8ea5aecf7ea751ed26a332b2c52.zip
[Bugfix] Improve fix for #3112731.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4210 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb')
-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);
}