VirtualBox

Changeset 47609 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Aug 8, 2013 10:56:04 AM (11 years ago)
Author:
vboxsync
Message:

FE/Qt: Popup-center: Trying to fix crash with mouse-release events handling for stacks/panes which already destroyed.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIPopupCenter.cpp

    r47523 r47609  
    340340    }
    341341
    342     /* Delete popup-stack: */
    343     delete m_stacks[strPopupStackID];
     342    /* Delete popup-stack asyncronously.
     343     * To avoid issues with events which already posted: */
     344    UIPopupStack *pPopupStack = m_stacks[strPopupStackID];
    344345    m_stacks.remove(strPopupStackID);
     346    pPopupStack->deleteLater();
    345347}
    346348
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupStackViewport.cpp

    r47523 r47609  
    140140    emit sigPopupPaneDone(strPopupPaneID, iResultCode);
    141141
    142     /* Cleanup the popup-pane: */
     142    /* Delete popup-pane asyncronously.
     143     * To avoid issues with events which already posted: */
    143144    m_panes.remove(strPopupPaneID);
    144     delete pPopupPane;
     145    pPopupPane->deleteLater();
    145146
    146147    /* Notify listeners about popup-pane removed: */
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