Skip to content

Commit

Permalink
fix small argv leak
Browse files Browse the repository at this point in the history
  • Loading branch information
skejeton authored Dec 21, 2024
1 parent d853b52 commit 0a87c58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,10 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShow
get_argv_argc(&argc, &argv);

int code = th_main(argc, argv);
if (code != 0)
if (code != 0) {
free_argv(argc, argv);
return code;
}

desc = th_window_sapp_desc();

Expand Down

0 comments on commit 0a87c58

Please sign in to comment.