As a follow on from a previous question about initialising custom memory allocation functions, is there anywhere I can safely reset/free the memory I allocated for my custom allocator?
I tried at the very end of SDL_AppQuit but that causes a crash because SDL tries to free memory that has already been freed.
Using the callbacks, is there any way to make sure freeing this memory is the absolutely last thing that is done?