Changeset 102334 in vbox for trunk/src/libs/xpcom18a4/ipc/ipcd/extensions/transmngr/common/tmTransaction.cpp
- Timestamp:
- Nov 27, 2023 4:08:53 PM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/ipc/ipcd/extensions/transmngr/common/tmTransaction.cpp
r31259 r102334 38 38 #include <stdlib.h> 39 39 #include "tmTransaction.h" 40 #ifdef VBOX_USE_IPRT_IN_XPCOM 41 # include <iprt/mem.h> 42 #endif 40 41 #include <iprt/mem.h> 43 42 44 43 /////////////////////////////////////////////////////////////////////////////// … … 47 46 tmTransaction::~tmTransaction() { 48 47 if (mHeader) 49 #ifdef VBOX_USE_IPRT_IN_XPCOM50 48 RTMemFree(mHeader); 51 #else52 free(mHeader);53 #endif54 49 } 55 50 … … 68 63 // indicates the message is the entire raw message 69 64 if (aQueueID == TM_INVALID_ID) { 70 #ifdef VBOX_USE_IPRT_IN_XPCOM71 65 header = (tmHeader*) RTMemAlloc(aLength); 72 #else73 header = (tmHeader*) malloc(aLength);74 #endif75 66 if (header) { 76 67 mRawMessageLength = aLength; … … 81 72 } 82 73 else { // need to create the tmHeader and concat the message 83 #ifdef VBOX_USE_IPRT_IN_XPCOM84 74 header = (tmHeader*) RTMemAlloc (sizeof(tmHeader) + aLength); 85 #else86 header = (tmHeader*) malloc (sizeof(tmHeader) + aLength);87 #endif88 75 if (header) { 89 76 mRawMessageLength = sizeof(tmHeader) + aLength;
Note:
See TracChangeset
for help on using the changeset viewer.