Skip to content

Commit

Permalink
destroy the created text
Browse files Browse the repository at this point in the history
  • Loading branch information
captain0xff committed Oct 30, 2024
1 parent 2b16b72 commit b90f8e3
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 @@ -387,6 +387,8 @@ int main(int argc, char *argv[])

geometry_data.vertex_count = 0;
geometry_data.index_count = 0;

TTF_DestroyText(text);
}

SDL_free(geometry_data.vertices);
Expand Down

0 comments on commit b90f8e3

Please sign in to comment.