VirtualBox

Changeset 68238 in vbox for trunk/src


Ignore:
Timestamp:
Aug 2, 2017 12:36:43 PM (7 years ago)
Author:
vboxsync
Message:

Audio/DrvHostCoreAudio.cpp: More cleanup code for coreAudioStreamUninit() / coreAudioStreamUninitQueue().

File:
1 edited

Legend:

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

    r68132 r68238  
    16351635    }
    16361636
     1637    if (pCAStream->pCfg)
     1638    {
     1639        DrvAudioHlpStreamCfgFree(pCAStream->pCfg);
     1640        pCAStream->pCfg = NULL;
     1641    }
     1642
    16371643    if (pCAStream->pCircBuf)
    16381644    {
     
    16561662
    16571663    int rc = coreAudioStreamUninitQueue(pCAStream);
     1664    if (RT_SUCCESS(rc))
     1665    {
     1666        pCAStream->Unit.pDevice = NULL;
     1667        pCAStream->pDrv         = NULL;
     1668    }
     1669
    16581670    return rc;
    16591671}
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