Changeset 72354 in vbox for trunk/src/VBox
- Timestamp:
- May 26, 2018 1:19:07 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibVideo.cpp
r72352 r72354 34 34 #include <VBox/HostServices/GuestPropertySvc.h> /* For Save and RetrieveVideoMode */ 35 35 #include <iprt/assert.h> 36 #if !defined(VBOX_VBGLR3_XFREE86) && !defined(VBOX_VBGLR3_XORG) 37 # include <iprt/mem.h> 38 #endif 36 #include <iprt/mem.h> 39 37 #include <iprt/string.h> 40 38 … … 305 303 cbDisplays = cDisplaysIn * sizeof(VMMDevDisplayDef); 306 304 cbAlloc = RT_UOFFSETOF(VMMDevDisplayChangeRequestMulti, aDisplays) + cbDisplays; 307 pReq = (VMMDevDisplayChangeRequestMulti *)RTMem AllocZ(cbAlloc);305 pReq = (VMMDevDisplayChangeRequestMulti *)RTMemTmpAlloc(cbAlloc); 308 306 AssertPtrReturn(pReq, VERR_NO_MEMORY); 309 307 308 memset(pReq, 0, cbAlloc); 310 309 rc = vmmdevInitRequest(&pReq->header, VMMDevReq_GetDisplayChangeRequestMulti); 311 AssertRCReturnStmt(rc, RTMem Free(pReq), rc);310 AssertRCReturnStmt(rc, RTMemTmpFree(pReq), rc); 312 311 313 312 pReq->header.size += (uint32_t)cbDisplays; … … 317 316 318 317 rc = vbglR3GRPerform(&pReq->header); 319 AssertRCReturnStmt(rc, RTMem Free(pReq), rc);318 AssertRCReturnStmt(rc, RTMemTmpFree(pReq), rc); 320 319 321 320 rc = pReq->header.rc; … … 326 325 } 327 326 328 RTMem Free(pReq);327 RTMemTmpFree(pReq); 329 328 return rc; 330 329 }
Note:
See TracChangeset
for help on using the changeset viewer.