VirtualBox

Changeset 10743 in vbox for trunk


Ignore:
Timestamp:
Jul 18, 2008 11:32:04 AM (16 years ago)
Author:
vboxsync
Message:

Fix crashers when destructing DrVD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DrvVD.cpp

    r10715 r10743  
    757757    PVBOXDISK pData = PDMINS2DATA(pDrvIns, PVBOXDISK);
    758758    LogFlow(("%s:\n", __FUNCTION__));
    759     rc = RTCacheDestroy(pData->pCache);
    760     AssertRC(rc);
     759
     760    if (pData->pCache)
     761    {
     762        rc = RTCacheDestroy(pData->pCache);
     763        AssertRC(rc);
     764    }
    761765}
    762766
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