VirtualBox

Changeset 61481 in vbox


Ignore:
Timestamp:
Jun 6, 2016 8:46:21 AM (8 years ago)
Author:
vboxsync
Message:

Main/USBProxyBackendSolaris.cpp: better event semaphore destruction handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/solaris/USBProxyBackendSolaris.cpp

    r60758 r61481  
    5656 */
    5757USBProxyBackendSolaris::USBProxyBackendSolaris()
    58     : USBProxyBackend(), mUSBLibInitialized(false)
     58    : USBProxyBackend(), mNotifyEventSem(NIL_RTSEMEVENT), mUSBLibInitialized(false)
    5959{
    6060    LogFlowThisFunc(("\n"));
     
    125125    }
    126126
    127     RTSemEventDestroy(mNotifyEventSem);
    128     mNotifyEventSem = NULL;
     127    if (mNotifyEventSem != NIL_RTSEMEVENT)
     128    {
     129        RTSemEventDestroy(mNotifyEventSem);
     130        mNotifyEventSem = NIL_RTSEMEVENT;
     131    }
    129132}
    130133
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