DOKK / manpages / debian 10 / allegro4-doc / destroy_font.3alleg4.en
destroy_font(3alleg4) Allegro manual destroy_font(3alleg4)

destroy_font - Frees the memory being used by a font structure. Allegro game programming library.

#include <allegro.h>

void destroy_font(FONT *f);

Frees the memory being used by a font structure. Don't use this on the default global Allegro font or any text routines using it could crash. You should use this only on fonts you have loaded manually after you are done with them, to prevent memory leaks in your program.

load_datafile_object(3alleg4), load_font(3alleg4), exfont(3alleg4)

version 4.4.2 Allegro