Skip to content

Commit 010cf70

Browse files
committed
Clean up the font and uninitialize SDL_ttf at shutdown
1 parent 55bcac4 commit 010cf70

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/testgputext.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,8 @@ int main(int argc, char *argv[])
471471
SDL_free(geometry_data.indices);
472472
TTF_DestroyText(text);
473473
TTF_DestroyGPUTextEngine(engine);
474+
TTF_CloseFont(font);
475+
TTF_Quit();
474476
free_context(&context);
475477
SDL_Quit();
476478

0 commit comments

Comments
 (0)