mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 09:36:21 +00:00
Free windows on exit
This commit is contained in:
@@ -135,6 +135,7 @@ void
|
||||
ui_close(void)
|
||||
{
|
||||
notifier_uninit();
|
||||
wins_destroy();
|
||||
endwin();
|
||||
}
|
||||
|
||||
|
||||
@@ -57,8 +57,6 @@ win_free(ProfWin* window)
|
||||
{
|
||||
delwin(window->win);
|
||||
free(window->from);
|
||||
window->from = NULL;
|
||||
window->win = NULL;
|
||||
free(window);
|
||||
window = NULL;
|
||||
}
|
||||
|
||||
@@ -455,3 +455,14 @@ wins_create_summary(void)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
void
|
||||
wins_destroy(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < NUM_WINS; i++) {
|
||||
if (windows[i] != NULL) {
|
||||
win_free(windows[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,5 +47,6 @@ GSList * wins_get_prune_recipients(void);
|
||||
void wins_lost_connection(void);
|
||||
gboolean wins_tidy(void);
|
||||
GSList * wins_create_summary(void);
|
||||
void wins_destroy(void);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user