VirtualBox

Ignore:
Timestamp:
Aug 21, 2014 7:11:11 PM (10 years ago)
Author:
vboxsync
Message:

wddm: memory cleanup

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/VBox

  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVModes.cpp

    r52136 r52450  
    8787}
    8888
     89static void vboxWddmVModesCleanup(VBOXWDDM_VMODES *pModes)
     90{
     91    VBoxVModesCleanup(&pModes->Modes);
     92    memset(pModes->aTransientResolutions, 0, sizeof (pModes->aTransientResolutions));
     93    memset(pModes->aPendingRemoveCurResolutions, 0, sizeof (pModes->aPendingRemoveCurResolutions));
     94}
     95
    8996/*
    9097static void vboxWddmVModesClone(const VBOXWDDM_VMODES *pModes, VBOXWDDM_VMODES *pDst)
     
    384391static VBOXWDDM_VMODES g_VBoxWddmVModes;
    385392
     393void VBoxWddmVModesCleanup()
     394{
     395    VBOXWDDM_VMODES *pModes = &g_VBoxWddmVModes;
     396    vboxWddmVModesCleanup(pModes);
     397}
    386398
    387399int VBoxWddmVModesInit(PVBOXMP_DEVEXT pExt)
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVModes.h

    r52136 r52450  
    3434
    3535int VBoxWddmVModesInit(PVBOXMP_DEVEXT pExt);
     36void VBoxWddmVModesCleanup();
    3637const CR_SORTARRAY* VBoxWddmVModesGet(PVBOXMP_DEVEXT pExt, uint32_t u32Target);
    3738int VBoxWddmVModesRemove(PVBOXMP_DEVEXT pExt, uint32_t u32Target, const RTRECTSIZE *pResolution);
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.cpp

    r52350 r52450  
    13521352        vboxWddmVGuidFree(pDevExt);
    13531353
     1354        VBoxWddmVModesCleanup();
    13541355        /* revert back to the state we were right after the DxgkDdiAddDevice */
    13551356        vboxWddmDevExtZeroinit(pDevExt, pDevExt->pPDO);
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