diff options
author | untir_l <87096069+untir-l@users.noreply.github.com> | 2022-03-02 15:18:28 +0000 |
---|---|---|
committer | untir_l <87096069+untir-l@users.noreply.github.com> | 2022-03-02 16:16:30 +0000 |
commit | e0babc53b16ef49ff40db21bbc4326e6e23185fa (patch) | |
tree | e69d264d17be3039763bccb72a00df974a4a131d | |
parent | 56ab2292e629acaee63ec3f6f4a2fa4e198d5a97 (diff) | |
download | hitomezashi-e0babc53b16ef49ff40db21bbc4326e6e23185fa.tar hitomezashi-e0babc53b16ef49ff40db21bbc4326e6e23185fa.tar.gz hitomezashi-e0babc53b16ef49ff40db21bbc4326e6e23185fa.zip |
Web: add comment to explain rationale behind a technical decision
-rw-r--r-- | web/hitomezashi_web.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/hitomezashi_web.c b/web/hitomezashi_web.c index 539fa96..0a36a2c 100644 --- a/web/hitomezashi_web.c +++ b/web/hitomezashi_web.c @@ -62,6 +62,10 @@ int EMSCRIPTEN_KEEPALIVE main(void) { SDL_RenderCopy(renderer, texture, NULL, NULL); SDL_RenderPresent(renderer); + // Since this is a short-lived application which is only run on page load, + // we do not need to delay the exit of main by freeing memory - it will be + // reclaimed by the browser automatically. + return Hitomezashi_Web_Result_Success; } |