Skip to content

Commit

Permalink
Properly clean up SDL in example
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkwouter committed Aug 16, 2024
1 parent e535b6a commit 9df223b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _includes/samples/sdl2/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ int main(int argc, char *argv[])
SDL_SetRenderDrawColor(renderer, 255, 255, 255, 255);
SDL_RenderPresent(renderer);
}
SDL_DestroyRenderer(renderer);
SDL_DestroyWindow(window);
SDL_Quit();

return 0;
Expand Down

0 comments on commit 9df223b

Please sign in to comment.