VirtualBox

Changeset 104540 in vbox for trunk/src/libs


Ignore:
Timestamp:
May 8, 2024 8:11:47 AM (10 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
163072
Message:

libs/xpcom: Free all messages on the outgoing queue when the client is destroyed, bugref:10598

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/ipc/ipcd/daemon/src/ipcClient.cpp

    r103378 r104540  
    9191
    9292    IPCMsgFree(&pThis->MsgIn, false /*fFreeStruct*/);
     93
     94    /* Free all outgoing messages. */
     95    PIPCMSG pIt, pItNext;
     96    RTListForEachSafe(&pThis->LstMsgsOut, pIt, pItNext, IPCMSG, NdMsg)
     97    {
     98        RTListNodeRemove(&pIt->NdMsg);
     99        IPCMsgFree(pIt, true /*fFreeStruct*/);
     100    }
     101
    93102    pThis->fUsed = false;
    94 
    95     /** @todo Free all outgoing messages. */
    96103}
    97104
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