Changeset 57541 in vbox for trunk/src/VBox/GuestHost/OpenGL/util/mem.c
- Timestamp:
- Aug 26, 2015 8:32:20 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/util/mem.c
r53726 r57541 12 12 13 13 #include <iprt/types.h> 14 #include <iprt/mem.h> 14 15 15 16 #if DEBUG_MEM … … 44 45 #endif 45 46 { 47 #ifdef VBOX 48 void *ret = RTMemAlloc( nbytes ); 49 #else 46 50 void *ret = malloc( nbytes ); 51 #endif 47 52 if (!ret) { 48 53 crError( "Out of memory trying to allocate %d bytes!", nbytes ); … … 69 74 #endif 70 75 { 76 #ifdef VBOX 77 void *ret = RTMemAlloc( nbytes ); 78 #else 71 79 void *ret = malloc( nbytes ); 80 #endif 72 81 if (!ret) { 73 82 crError( "Out of memory trying to (c)allocate %d bytes!", nbytes ); … … 109 118 DECLEXPORT(void) crFree( void *ptr ) 110 119 { 120 #ifdef VBOX 121 if (ptr) 122 RTMemFree(ptr); 123 #else 111 124 if (ptr) 112 125 free(ptr); 126 #endif 113 127 } 114 128
Note:
See TracChangeset
for help on using the changeset viewer.