Differences From Artifact [133c2d9091]:
- File src/OFObject.m — part of check-in [d0ae3bfd6c] at 2020-10-25 23:33:09 on branch trunk — Add of_{malloc,calloc,realloc,free} (user: js, size: 32809) [annotate] [blame] [check-ins using]
To Artifact [2cf6c520ad]:
- File
src/OFObject.m
— part of check-in
[3d8286feee]
at
2020-11-04 23:18:25
on branch trunk
— Remove of_free()
While it makes sense to wrap malloc and calloc to replace the error
checking with exceptions, it does not make sense to wrap free. (user: js, size: 32760) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
157 158 159 160 161 162 163 | if OF_UNLIKELY ((pointer = realloc(pointer, count * size)) == NULL) @throw [OFOutOfMemoryException exceptionWithRequestedSize: size]; return pointer; } | < < < < < < | 157 158 159 160 161 162 163 164 165 166 167 168 169 170 | if OF_UNLIKELY ((pointer = realloc(pointer, count * size)) == NULL) @throw [OFOutOfMemoryException exceptionWithRequestedSize: size]; return pointer; } #if !defined(HAVE_ARC4RANDOM) && !defined(HAVE_GETRANDOM) static void initRandom(void) { struct timeval tv; # ifdef HAVE_RANDOM |
︙ | ︙ |