VirtualBox

Changeset 83562 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 5, 2020 1:46:16 AM (5 years ago)
Author:
vboxsync
Message:

DevVGA_VBVA.cpp: Apply RTMemFreeZ to the mouse shape info data and partial bufferings. bugref:9698

File:
1 edited

Legend:

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

    r82968 r83562  
    112112    }
    113113
    114     RTMemFree(pVBVAData->partialRecord.pu8);
     114    RTMemFreeZ(pVBVAData->partialRecord.pu8, pVBVAData->partialRecord.cb);
    115115
    116116    RT_ZERO(*pVBVAData);
     
    766766        if (cbPointerData > pCtx->mouseShapeInfo.cbAllocated)
    767767        {
    768             RTMemFree(pCtx->mouseShapeInfo.pu8Shape);
     768            RTMemFreeZ(pCtx->mouseShapeInfo.pu8Shape, pCtx->mouseShapeInfo.cbAllocated);
    769769            pCtx->mouseShapeInfo.pu8Shape = NULL;
    770770            pCtx->mouseShapeInfo.cbShape = 0;
     
    27442744
    27452745        pCtx->mouseShapeInfo.fSet = false;
    2746         RTMemFree(pCtx->mouseShapeInfo.pu8Shape);
     2746        RTMemFreeZ(pCtx->mouseShapeInfo.pu8Shape, pCtx->mouseShapeInfo.cbAllocated);
    27472747        pCtx->mouseShapeInfo.pu8Shape = NULL;
    27482748        pCtx->mouseShapeInfo.cbAllocated = 0;
     
    28572857        VBVACONTEXT *pCtx = (VBVACONTEXT *)HGSMIContext(pHgsmi);
    28582858        pCtx->mouseShapeInfo.fSet = false;
    2859         RTMemFree(pCtx->mouseShapeInfo.pu8Shape);
     2859        RTMemFreeZ(pCtx->mouseShapeInfo.pu8Shape, pCtx->mouseShapeInfo.cbAllocated);
    28602860        pCtx->mouseShapeInfo.pu8Shape = NULL;
    28612861        pCtx->mouseShapeInfo.cbAllocated = 0;
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