VirtualBox

Ignore:
Timestamp:
Aug 14, 2020 10:55:03 AM (4 years ago)
Author:
vboxsync
Message:

Shared Clipboard: Also free X11 CLIPREADCBREQ in ShClBackendReadData() on error.

File:
1 edited

Legend:

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

    r84142 r85762  
    197197        if (idEvent != NIL_SHCLEVENTID)
    198198        {
     199            /* Note: ShClX11ReadDataFromX11() will consume pReq on success. */
    199200            rc = ShClX11ReadDataFromX11(&pClient->State.pCtx->X11, uFormat, pReq);
    200201            if (RT_SUCCESS(rc))
     
    215216        }
    216217        else
    217         {
     218            rc = VERR_SHCLPB_MAX_EVENTS_REACHED;
     219
     220        if (RT_FAILURE(rc))
    218221            RTMemFree(pReq);
    219             rc = VERR_SHCLPB_MAX_EVENTS_REACHED;
    220         }
    221222    }
    222223    else
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