VirtualBox

Changeset 69657 in vbox for trunk


Ignore:
Timestamp:
Nov 11, 2017 11:10:03 AM (7 years ago)
Author:
vboxsync
Message:

HostServices/SharedClipboard: fix a unit test memory leak reported by gcc.
bugref:9041: clipboard sharing on macOS host is brittle, Guest->Host direction

File:
1 edited

Legend:

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

    r69635 r69657  
    9393    RTTESTI_CHECK_MSG(u32Mode == VBOX_SHARED_CLIPBOARD_MODE_OFF,
    9494                      ("u32Mode=%u\n", (unsigned) u32Mode));
     95    table.pfnUnload(NULL);
    9596}
    9697
     
    192193                  2, parms);
    193194    RTTESTI_CHECK_RC(call.rc, VERR_TRY_AGAIN);  /* This call should not complete yet. */
     195    table.pfnUnload(NULL);
    194196}
    195197
     
    233235    fHeadless = vboxSvcClipboardGetHeadless();
    234236    RTTESTI_CHECK_MSG(fHeadless == true, ("fHeadless=%RTbool\n", fHeadless));
     237    table.pfnUnload(NULL);
    235238}
    236239
     
    270273
    271274int vboxClipboardInit() { return VINF_SUCCESS; }
    272 void vboxClipboardDestroy() { AssertFailed(); }
     275void vboxClipboardDestroy() {}
    273276void vboxClipboardDisconnect(_VBOXCLIPBOARDCLIENTDATA*) { AssertFailed(); }
    274277int vboxClipboardConnect(_VBOXCLIPBOARDCLIENTDATA*, bool)
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