mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04: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:
parent
57629dcadc
commit
0c209a6899
@ -95,15 +95,19 @@ int term_init(void)
|
||||
term_lines_empty = g_new0(char, term_height);
|
||||
|
||||
term_common_init();
|
||||
g_atexit(term_deinit);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void term_deinit(void)
|
||||
{
|
||||
g_source_remove(redraw_tag);
|
||||
if (current_term != NULL) {
|
||||
g_source_remove(redraw_tag);
|
||||
|
||||
term_common_deinit();
|
||||
terminfo_core_deinit(current_term);
|
||||
term_common_deinit();
|
||||
terminfo_core_deinit(current_term);
|
||||
current_term = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
static void term_move_real(void)
|
||||
|
Loading…
Reference in New Issue
Block a user