| 5408 | } |
| 5409 | |
| 5410 | void *SDL_realloc(void *ptr, size_t size) |
| 5411 | { |
| 5412 | void *mem; |
| 5413 | |
| 5414 | if (!ptr && !size) { |
| 5415 | size = 1; |
| 5416 | } |
| 5417 | |
| 5418 | mem = s_mem.realloc_func(ptr, size); |
| 5419 | if (mem && !ptr) { |
| 5420 | SDL_AtomicIncRef(&s_mem.num_allocations); |
| 5421 | } |
| 5422 | return mem; |
| 5423 | } |
| 5424 | |
| 5425 | void SDL_free(void *ptr) |
| 5426 | { |
no outgoing calls
no test coverage detected