mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-27 05:16:21 +00:00
Free windows on exit
This commit is contained in:
@@ -135,6 +135,7 @@ void
|
|||||||
ui_close(void)
|
ui_close(void)
|
||||||
{
|
{
|
||||||
notifier_uninit();
|
notifier_uninit();
|
||||||
|
wins_destroy();
|
||||||
endwin();
|
endwin();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -57,8 +57,6 @@ win_free(ProfWin* window)
|
|||||||
{
|
{
|
||||||
delwin(window->win);
|
delwin(window->win);
|
||||||
free(window->from);
|
free(window->from);
|
||||||
window->from = NULL;
|
|
||||||
window->win = NULL;
|
|
||||||
free(window);
|
free(window);
|
||||||
window = NULL;
|
window = NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -455,3 +455,14 @@ wins_create_summary(void)
|
|||||||
|
|
||||||
return result;
|
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);
|
void wins_lost_connection(void);
|
||||||
gboolean wins_tidy(void);
|
gboolean wins_tidy(void);
|
||||||
GSList * wins_create_summary(void);
|
GSList * wins_create_summary(void);
|
||||||
|
void wins_destroy(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user