This commit is contained in:
Mike Nolan 2023-10-04 19:07:32 -05:00
parent 1f49e21785
commit d485bb289c
1 changed files with 3 additions and 2 deletions

View File

@ -15,7 +15,8 @@ int main(int argc, char **argv) {
// Initialise the Graphics & Video subsystem
GRRLIB_Init();
global_data->myFont =GRRLIB_LoadTTF(FreeMonoBold_ttf, FreeMonoBold_ttf_size);
GRRLIB_ttfFont* myFont=GRRLIB_LoadTTF(FreeMonoBold_ttf, FreeMonoBold_ttf_size);
global_data->myFont=myFont;
// Initialise the Controllers
Ctrl_Init();
@ -37,7 +38,7 @@ int main(int argc, char **argv) {
GRRLIB_Render(); // Render the frame buffer to the TV
}
GRRLIB_FreeTTF(global_data->myFont);
GRRLIB_FreeTTF(myFont);
free(global_data);
GRRLIB_Exit(); // Be a good boy, clear the memory allocated by GRRLIB