]> source.dussan.org Git - tigervnc.git/commitdiff
[Bugfix] Improve fix for #3112731.
authorAdam Tkac <atkac@redhat.com>
Wed, 1 Dec 2010 10:11:20 +0000 (10:11 +0000)
committerAdam Tkac <atkac@redhat.com>
Wed, 1 Dec 2010 10:11:20 +0000 (10:11 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4210 3789f03b-4d11-0410-bbf8-ca57d06f2519

common/rfb/ScreenSet.h

index f2df156cc13dab26c29f5b16eeccb9b605b1c1f3..0023d723c605d8510dfe5fa37d23796d0d3b2192 100644 (file)
@@ -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);
       }