VirtualBox

Changeset 86363 in vbox for trunk/src/VBox/HostServices


Ignore:
Timestamp:
Sep 30, 2020 8:52:28 PM (4 years ago)
Author:
vboxsync
Message:

SharedClipboard: Make sure to free Legacy.lstCID in shClSvcClientInit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc.cpp

    r86008 r86363  
    632632    shClSvcClientStateDestroy(&pClient->State);
    633633
     634    PSHCLCLIENTLEGACYCID pCidIter, pCidIterNext;
     635    RTListForEachSafe(&pClient->Legacy.lstCID, pCidIter, pCidIterNext, SHCLCLIENTLEGACYCID, Node)
     636    {
     637        RTMemFree(pCidIter);
     638    }
     639
    634640    int rc2 = RTCritSectDelete(&pClient->CritSect);
    635641    AssertRC(rc2);
     
    637643    ClipboardClientMap::iterator itClient = g_mapClients.find(pClient->State.uClientID);
    638644    if (itClient != g_mapClients.end())
    639     {
    640645        g_mapClients.erase(itClient);
    641     }
    642646    else
    643647        AssertFailed();
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