VirtualBox

Changeset 23338 in vbox for trunk/src/VBox/Main/HostImpl.cpp


Ignore:
Timestamp:
Sep 25, 2009 3:26:52 PM (15 years ago)
Author:
vboxsync
Message:

Host::uninit: llChildren is modified during child uninit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/HostImpl.cpp

    r23308 r23338  
    342342#ifdef VBOX_WITH_USB
    343343    /* uninit all USB device filters still referenced by clients */
    344     for (USBDeviceFilterList::iterator it = m->llChildren.begin();
    345          it != m->llChildren.end();
    346          ++it)
    347     {
    348         ComObjPtr<HostUSBDeviceFilter> &pChild = *it;
     344    while (!m->llChildren.empty())
     345    {
     346        ComObjPtr<HostUSBDeviceFilter> pChild = m->llChildren.front();
     347        m->llChildren.pop_front();
    349348        pChild->uninit();
    350349    }
    351 
    352     m->llChildren.clear();
    353350
    354351    m->llUSBDeviceFilters.clear();
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