| 226 | extern void free_menu_data(void); |
| 227 | |
| 228 | void |
| 229 | free_winmain_stuff(void) |
| 230 | { |
| 231 | int cnt; |
| 232 | |
| 233 | for (cnt = 0; cnt < MAX_CMDLINE_PARAM; ++cnt) { |
| 234 | if (argv[cnt]) |
| 235 | free((genericptr_t) argv[cnt]), argv[cnt] = 0; |
| 236 | } |
| 237 | if (_nethack_app.saved_text) |
| 238 | free((genericptr_t) _nethack_app.saved_text), |
| 239 | _nethack_app.saved_text = 0; |
| 240 | for (cnt = 0; cnt < MAXWINDOWS; ++cnt) { |
| 241 | if (windowdata[cnt].address) { |
| 242 | if (!windowdata[cnt].isstatic) |
| 243 | free(windowdata[cnt].address); |
| 244 | windowdata[cnt].address = 0; |
| 245 | } |
| 246 | } |
| 247 | free_menu_data(); |
| 248 | } |
| 249 | |
| 250 | #ifdef _MSC_VER |
| 251 | #pragma warning( pop ) |
no test coverage detected