VirtualBox

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


Ignore:
Timestamp:
Dec 11, 2018 11:02:50 AM (6 years ago)
Author:
vboxsync
Message:

Audio: Use DrvAudioHlpStreamCfgFree().

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

Legend:

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

    r76057 r76158  
    25452545    }
    25462546
    2547     if (pStreamCfg)
    2548     {
    2549         RTMemFree(pStreamCfg);
    2550         pStreamCfg = NULL;
    2551     }
     2547    DrvAudioHlpStreamCfgFree(pStreamCfg);
    25522548
    25532549    LogFlowFuncLeaveRC(rc);
  • trunk/src/VBox/Devices/Audio/DevIchAc97.cpp

    r76157 r76158  
    16651665    if (!RTStrPrintf(pStreamCfg->szName, sizeof(pStreamCfg->szName), "%s", pCfg->szName))
    16661666    {
    1667         RTMemFree(pStreamCfg);
     1667        DrvAudioHlpStreamCfgFree(pStreamCfg);
    16681668        return VERR_BUFFER_OVERFLOW;
    16691669    }
     
    17221722        rc = VERR_INVALID_PARAMETER;
    17231723
    1724     if (pStreamCfg)
    1725     {
    1726         RTMemFree(pStreamCfg);
    1727         pStreamCfg = NULL;
    1728     }
     1724    DrvAudioHlpStreamCfgFree(pStreamCfg);
    17291725
    17301726    LogFlowFuncLeaveRC(rc);
  • trunk/src/VBox/Devices/Audio/DevSB16.cpp

    r73529 r76158  
    19931993    }
    19941994
    1995     RTMemFree(pCfgHost);
     1995    DrvAudioHlpStreamCfgFree(pCfgHost);
     1996
    19961997    return rc;
    19971998}
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