From: Adam Tkac Date: Wed, 1 Dec 2010 10:11:20 +0000 (+0000) Subject: [Bugfix] Improve fix for #3112731. X-Git-Tag: v1.0.90~108 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e9e338c89dc4a8ea5aecf7ea751ed26a332b2c52;p=tigervnc.git [Bugfix] Improve fix for #3112731. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4210 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- 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::iterator iter, nextiter; for (iter = screens.begin();iter != screens.end();iter = nextiter) { - nextiter = ++iter; + nextiter = iter; nextiter++; if (iter->id == id) screens.erase(iter); }