summaryrefslogtreecommitdiff
path: root/web/hitomezashi_web.c
diff options
context:
space:
mode:
authoruntir_l <87096069+untir-l@users.noreply.github.com>2022-03-02 15:18:28 +0000
committeruntir_l <87096069+untir-l@users.noreply.github.com>2022-03-02 16:16:30 +0000
commite0babc53b16ef49ff40db21bbc4326e6e23185fa (patch)
treee69d264d17be3039763bccb72a00df974a4a131d /web/hitomezashi_web.c
parent56ab2292e629acaee63ec3f6f4a2fa4e198d5a97 (diff)
downloadhitomezashi-e0babc53b16ef49ff40db21bbc4326e6e23185fa.tar
hitomezashi-e0babc53b16ef49ff40db21bbc4326e6e23185fa.tar.gz
hitomezashi-e0babc53b16ef49ff40db21bbc4326e6e23185fa.zip
Web: add comment to explain rationale behind a technical decision
Diffstat (limited to 'web/hitomezashi_web.c')
-rw-r--r--web/hitomezashi_web.c4
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;
}