VirtualBox

Ignore:
Timestamp:
Sep 1, 2020 5:46:22 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
140181
Message:

Shared Clipboard/Host Service: Automatically unregister event if it has no (more) references in ShClSvcGuestDataReceived(). bugref:9437

File:
1 edited

Legend:

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

    r85983 r85985  
    13371337        if (RT_FAILURE(rc))
    13381338            ShClPayloadFree(pPayload);
     1339
     1340        /* No one holding a reference to the event event anymore? Unregister it. */
     1341        if (ShClEventGetRefs(&pClient->EventSrc, idEvent) == 0)
     1342        {
     1343            int rc2 = ShClEventUnregister(&pClient->EventSrc, idEvent);
     1344            if (RT_SUCCESS(rc))
     1345                rc = rc2;
     1346        }
    13391347    }
    13401348
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette