VirtualBox

Changeset 82315 in vbox


Ignore:
Timestamp:
Dec 2, 2019 11:54:14 AM (5 years ago)
Author:
vboxsync
Message:

Shared Clipboard/VBoxClient: Some termination / cleanup fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/clipboard.cpp

    r82287 r82315  
    246246        {
    247247            rc = VbglR3ClipboardConnectEx(&g_Ctx.CmdCtx);
    248 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS
    249             if (RT_SUCCESS(rc))
    250                 rc = ShClTransferCtxInit(&g_Ctx.TransferCtx);
    251 #endif
    252248            if (RT_FAILURE(rc))
    253249                ShClX11ThreadStop(&g_Ctx.X11);
     
    517513}
    518514
     515static int init(struct VBCLSERVICE **pSelf)
     516{
     517    RT_NOREF(pSelf);
     518
     519    int rc;
     520
     521#ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS
     522    rc = ShClTransferCtxInit(&g_Ctx.TransferCtx);
     523#else
     524    rc = VINF_SUCCESS;
     525#endif
     526
     527    LogFlowFuncLeaveRC(rc);
     528    return rc;
     529}
     530
    519531static int run(struct VBCLSERVICE **ppInterface, bool fDaemonised)
    520532{
     
    556568    ShClTransferCtxDestroy(&g_Ctx.TransferCtx);
    557569#endif
    558 
    559     VbglR3Term();
    560570}
    561571
     
    564574    getName,
    565575    getPidFilePath,
    566     VBClServiceDefaultHandler, /* init */
     576    init,
    567577    run,
    568578    cleanup
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