VirtualBox

Changeset 85775 in vbox


Ignore:
Timestamp:
Aug 14, 2020 3:17:17 PM (4 years ago)
Author:
vboxsync
Message:

Reverted r139926 (Shared Clipboard/Win: Don't leak allocated SHCLEVENTPAYLOAD struct) again; already is taken care of in ShClEventUnregister().

File:
1 edited

Legend:

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

    r85774 r85775  
    186186        if (RT_SUCCESS(rc))
    187187        {
    188             /* Check if any payload data is given; could happen on invalid / not-expected formats. */
    189188            *ppvData = pPayload ? pPayload->pvData : NULL;
    190189            *pcbData = pPayload ? pPayload->cbData : 0;
    191 
    192             /* Note: Do not use ShClPayloadFree() here, as *ppvData now owns the pointer.
    193              *       Avoids allocating / copying data around. */
    194             RTMemFree(pPayload);
    195190        }
    196191
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