Memory Leak
#5
Yep.  Anything you load, you need to free, particularly when dealing with it being inside a looping structure.

I'd suggest just loading the font once at program initialization and then keeping it in memory as a shared variable.  Then you can just _FONT shared_variable_name as needed, without having to reload that font over and over in memory.
Reply


Messages In This Thread
Memory Leak - by NasaCow - 05-10-2023, 02:27 AM
RE: Memory Leak - by TerryRitchie - 05-10-2023, 02:34 AM
RE: Memory Leak - by SMcNeill - 05-10-2023, 03:01 AM
RE: Memory Leak - by NasaCow - 05-10-2023, 04:23 AM
RE: Memory Leak - by SMcNeill - 05-10-2023, 05:13 AM
RE: Memory Leak - by Ikerkaz - 05-10-2023, 11:12 AM
RE: Memory Leak - by bplus - 05-10-2023, 01:27 PM
RE: Memory Leak - by Ikerkaz - 05-10-2023, 02:35 PM
RE: Memory Leak - by bplus - 05-10-2023, 04:55 PM
RE: Memory Leak - by NasaCow - 05-11-2023, 12:25 AM
RE: Memory Leak - by Ikerkaz - 05-11-2023, 02:40 PM
RE: Memory Leak - by SMcNeill - 05-11-2023, 02:48 PM
RE: Memory Leak - by TerryRitchie - 05-11-2023, 03:43 PM



Users browsing this thread: 3 Guest(s)