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