VirtualBox

Changeset 1900 in vbox for trunk


Ignore:
Timestamp:
Apr 3, 2007 4:46:24 PM (18 years ago)
Author:
vboxsync
Message:

free VGA memory when destructing the device

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r1727 r1900  
    47454745     * Allocate the VRAM.
    47464746     */
    4747     /** @todo freeing of the VRAM. */
    47484747    rc = SUPPageAlloc(pData->vram_size >> PAGE_SHIFT, (void **)&pData->vram_ptrHC);
    47494748    if (VBOX_FAILURE(rc))
     
    49864985    }
    49874986#endif
     4987
     4988    /*
     4989     * Allocate the VRAM.
     4990     */
     4991    int rc = SUPPageFree(pData->vram_ptrHC, pData->vram_size >> PAGE_SHIFT);
     4992    if (VBOX_FAILURE(rc))
     4993    {
     4994        AssertMsgFailed(("SUPPageFree(%p, %#x) -> %d\n", pData->vram_ptrHC, pData->vram_size, rc));
     4995        return rc;
     4996    }
     4997    pData->vram_ptrHC = NULL;
    49884998
    49894999    return VINF_SUCCESS;
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