From e9e338c89dc4a8ea5aecf7ea751ed26a332b2c52 Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Wed, 1 Dec 2010 10:11:20 +0000 Subject: [PATCH] [Bugfix] Improve fix for #3112731. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4210 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- common/rfb/ScreenSet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5