Skip to content

Commit

Permalink
Clean up the font and uninitialize SDL_ttf at shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 1, 2025
1 parent 55bcac4 commit 010cf70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/testgputext.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,8 @@ int main(int argc, char *argv[])
SDL_free(geometry_data.indices);
TTF_DestroyText(text);
TTF_DestroyGPUTextEngine(engine);
TTF_CloseFont(font);
TTF_Quit();
free_context(&context);
SDL_Quit();

Expand Down

0 comments on commit 010cf70

Please sign in to comment.