VirtualBox

Changeset 66898 in vbox for trunk/src/VBox/Main/src-all


Ignore:
Timestamp:
May 15, 2017 4:21:16 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
115419
Message:

Main/SecretKeyStore: proper iterator increment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-all/SecretKeyStore.cpp

    r66897 r66898  
    218218            AssertMsg(!pKey->refCount(), ("No one should access the stored key at this point anymore!\n"));
    219219            delete pKey;
    220             SecretKeyMap::iterator itNext = ++it;
     220            SecretKeyMap::iterator itNext = it;
     221            itNext++;
    221222            m_mapSecretKeys.erase(it);
    222223            it = itNext;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette