VirtualBox

Changeset 89567 in vbox for trunk/src/VBox/Devices/Audio


Ignore:
Timestamp:
Jun 8, 2021 10:26:00 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
144999
Message:

Audio/ValKit: Destruction fixes. bugref:10008

Location:
trunk/src/VBox/Devices/Audio
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/AudioTestService.cpp

    r89541 r89567  
    891891    pThis->fStarted   = false;
    892892    pThis->fTerminate = false;
     893
     894    pThis->hPipeR     = NIL_RTPIPE;
     895    pThis->hPipeW     = NIL_RTPIPE;
     896
    893897    RTListInit(&pThis->LstClientsNew);
    894898
  • trunk/src/VBox/Devices/Audio/DrvHostAudioValidationKit.cpp

    r89561 r89567  
    799799        LogRel(("Audio: Validation Kit: Shutdown of Audio Test Service failed, rc=%Rrc\n", rc));
    800800
    801     int rc2 = RTCritSectDelete(&pThis->CritSect);
    802     if (RT_SUCCESS(rc))
    803         rc = rc2;
     801    if (RTCritSectIsInitialized(&pThis->CritSect))
     802    {
     803        int rc2 = RTCritSectDelete(&pThis->CritSect);
     804        if (RT_SUCCESS(rc))
     805            rc = rc2;
     806    }
    804807
    805808    if (RT_FAILURE(rc))
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