VirtualBox

Changeset 64754 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 25, 2016 3:33:39 PM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8671: Runtime UI: Protection versus recursive UIMachine destruction which could happen if user tries to power off VM instantly on startup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.cpp

    r62493 r64754  
    118118{
    119119    /* Make sure machine is created: */
    120     AssertPtrReturnVoid(m_spInstance);
    121 
     120    if (!m_spInstance)
     121        return;
     122
     123    /* Protect versus recursive call: */
     124    UIMachine *pInstance = m_spInstance;
     125    m_spInstance = 0;
    122126    /* Cleanup machine UI: */
    123     m_spInstance->cleanup();
     127    pInstance->cleanup();
    124128    /* Destroy machine UI: */
    125     delete m_spInstance;
    126     m_spInstance = 0;
     129    delete pInstance;
    127130}
    128131
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