diff --git a/examples/game/02-woodeneye-008/woodeneye-008.c b/examples/game/02-woodeneye-008/woodeneye-008.c index 2adbeee44a63e..e1c968e062b1f 100644 --- a/examples/game/02-woodeneye-008/woodeneye-008.c +++ b/examples/game/02-woodeneye-008/woodeneye-008.c @@ -1,3 +1,7 @@ +/* + * This code is public domain. Feel free to use it for any purpose! + */ + #define SDL_MAIN_USE_CALLBACKS 1 /* use the callbacks instead of main() */ #include #include @@ -482,8 +486,5 @@ SDL_AppResult SDL_AppIterate(void *appstate) void SDL_AppQuit(void *appstate, SDL_AppResult result) { - AppState *as = appstate; - SDL_DestroyRenderer(as->renderer); - SDL_DestroyWindow(as->window); - SDL_Quit(); -} \ No newline at end of file + /* SDL will clean up the window/renderer for us. */ +}