VirtualBox

Changeset 61563 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 8, 2016 9:08:34 AM (9 years ago)
Author:
vboxsync
Message:

Audio/DrvAudio.cpp: Additional check.

File:
1 edited

Legend:

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

    r61523 r61563  
    12701270    if (RT_FAILURE(rc))
    12711271    {
    1272         drvAudioStreamDestroyInternal(pThis, pGstStrm);
    1273         pGstStrm = NULL;
    1274 
    1275         drvAudioStreamDestroyInternal(pThis, pHstStrm);
    1276         pHstStrm = NULL;
     1272        if (pGstStrm)
     1273        {
     1274            drvAudioStreamDestroyInternal(pThis, pGstStrm);
     1275            pGstStrm = NULL;
     1276        }
     1277
     1278        if (pHstStrm)
     1279        {
     1280            drvAudioStreamDestroyInternal(pThis, pHstStrm);
     1281            pHstStrm = NULL;
     1282        }
    12771283    }
    12781284    else
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