Windows NetHackW memory leak bit

This commit is contained in:
nhmall
2024-12-10 14:49:56 -05:00
parent 323359ed83
commit e08bd9ef8a
3 changed files with 16 additions and 1 deletions

View File

@@ -252,6 +252,8 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine,
return 0;
}
extern void free_menu_data(void);
void
free_winmain_stuff(void)
{
@@ -271,6 +273,7 @@ free_winmain_stuff(void)
windowdata[cnt].address = 0;
}
}
free_menu_data();
}
#ifdef _MSC_VER