VirtualBox

Ignore:
Timestamp:
Nov 27, 2023 4:08:53 PM (14 months ago)
Author:
vboxsync
Message:

libs/xpcom: Drop VBOX_USE_IPRT_IN_XPCOM andmake the code the default as running without IPRT is impossible anyways, bugref:10545

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/ipc/ipcd/extensions/transmngr/common/tmTransaction.cpp

    r31259 r102334  
    3838#include <stdlib.h>
    3939#include "tmTransaction.h"
    40 #ifdef VBOX_USE_IPRT_IN_XPCOM
    41 # include <iprt/mem.h>
    42 #endif
     40
     41#include <iprt/mem.h>
    4342
    4443///////////////////////////////////////////////////////////////////////////////
     
    4746tmTransaction::~tmTransaction() {
    4847  if (mHeader)
    49 #ifdef VBOX_USE_IPRT_IN_XPCOM
    5048    RTMemFree(mHeader);
    51 #else
    52     free(mHeader);
    53 #endif
    5449}
    5550
     
    6863  // indicates the message is the entire raw message
    6964  if (aQueueID == TM_INVALID_ID) {
    70 #ifdef VBOX_USE_IPRT_IN_XPCOM
    7165    header = (tmHeader*) RTMemAlloc(aLength);
    72 #else
    73     header = (tmHeader*) malloc(aLength);
    74 #endif
    7566    if (header) {
    7667      mRawMessageLength = aLength;
     
    8172  }
    8273  else {   // need to create the tmHeader and concat the message
    83 #ifdef VBOX_USE_IPRT_IN_XPCOM
    8474    header = (tmHeader*) RTMemAlloc (sizeof(tmHeader) + aLength);
    85 #else
    86     header = (tmHeader*) malloc (sizeof(tmHeader) + aLength);
    87 #endif
    8875    if (header) {
    8976      mRawMessageLength = sizeof(tmHeader) + aLength;
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