VirtualBox

Changeset 99446 in vbox


Ignore:
Timestamp:
Apr 18, 2023 3:05:28 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
156907
Message:

FE/Qt: Workaround for weird QPointer delete behavior.

File:
1 edited

Legend:

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

    r98642 r99446  
    23692369
    23702370    /* Delete message-box: */
     2371#if 1 /* With a debug Qt 5.15.2 (r175) build and paged heap on windows, the ~QPointer destructor will trigger heap corruption
     2372         (VERIFIER STOP 0000000000000010: pid 0x253C: corrupted start stamp).  Clearing the QPointer prior to deletion works
     2373         around the issue (calling clear() after delete just triggers the problem a few lines earlier). */
     2374    QIMessageBox *pSafe = pMessageBox;
     2375    pMessageBox.clear();
     2376    if (pSafe)
     2377        delete pSafe;
     2378#else
    23712379    delete pMessageBox;
     2380#endif
    23722381
    23732382    /* Return result-code: */
Note: See TracChangeset for help on using the changeset viewer.

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