vydd / sketch

A Common Lisp framework for the creation of electronic art, visual design, game prototyping, game making, computer graphics, exploration of human-computer interaction, and more.
MIT License
1.39k stars 67 forks source link

Gleefre/free font surfaces manually #102

Closed Gleefre closed 8 months ago

Gleefre commented 8 months ago

Leaving it to finalizers (which cl-sdl2-ttf does) may lead to various bugs (SDL2_TTF is not thread-safe while finalizers can be executed at any point; or they might not be called at all creating a memory leak.)

(See also https://github.com/Failproofshark/cl-sdl2-ttf/issues/22)