1
0
mirror of https://github.com/irssi/irssi.git synced 2025-02-02 15:08:01 -05:00

atexit(term_deinit)

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2424 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-02-10 15:01:00 +00:00 committed by cras
parent 57629dcadc
commit 0c209a6899

View File

@ -95,15 +95,19 @@ int term_init(void)
term_lines_empty = g_new0(char, term_height); term_lines_empty = g_new0(char, term_height);
term_common_init(); term_common_init();
g_atexit(term_deinit);
return TRUE; return TRUE;
} }
void term_deinit(void) void term_deinit(void)
{ {
g_source_remove(redraw_tag); if (current_term != NULL) {
g_source_remove(redraw_tag);
term_common_deinit(); term_common_deinit();
terminfo_core_deinit(current_term); terminfo_core_deinit(current_term);
current_term = NULL;
}
} }
static void term_move_real(void) static void term_move_real(void)