al_uninstall_sytem()
I spent 2 hours debugging last night and another 2 hours today to find the reason for random crashes at application exit.
When using Allegro 5 in a shared library, it is very important to use al_uninstall_system() manually (I guess allegro can’t call this in atexit() in those cases …



