mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
fixed several signal leaks
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2683 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
8b9c4823bf
commit
53d595ba7f
@ -240,7 +240,7 @@ void fe_common_core_deinit(void)
|
||||
fe_queries_deinit();
|
||||
|
||||
fe_messages_deinit();
|
||||
fe_ignore_messages_init();
|
||||
fe_ignore_messages_deinit();
|
||||
|
||||
theme_unregister();
|
||||
themes_deinit();
|
||||
|
@ -842,6 +842,11 @@ void keyboard_init(void)
|
||||
|
||||
void keyboard_deinit(void)
|
||||
{
|
||||
key_unbind("command", (SIGNAL_FUNC) sig_command);
|
||||
key_unbind("key", (SIGNAL_FUNC) sig_key);
|
||||
key_unbind("multi", (SIGNAL_FUNC) sig_multi);
|
||||
key_unbind("nothing", (SIGNAL_FUNC) sig_nothing);
|
||||
|
||||
while (keyinfos != NULL)
|
||||
keyinfo_remove(keyinfos->data);
|
||||
g_hash_table_destroy(keys);
|
||||
|
@ -429,4 +429,8 @@ void fe_netjoin_deinit(void)
|
||||
}
|
||||
|
||||
signal_remove("setup changed", (SIGNAL_FUNC) read_settings);
|
||||
|
||||
signal_remove("message quit", (SIGNAL_FUNC) msg_quit);
|
||||
signal_remove("message join", (SIGNAL_FUNC) msg_join);
|
||||
signal_remove("message mode", (SIGNAL_FUNC) msg_mode);
|
||||
}
|
||||
|
@ -665,11 +665,11 @@ void gui_readline_init(void)
|
||||
|
||||
/* window managing */
|
||||
key_bind("previous_window", "Previous window", "^P", NULL, (SIGNAL_FUNC) key_previous_window);
|
||||
key_bind("left_window", "Window in left", "meta-left", NULL, (SIGNAL_FUNC) key_left_window);
|
||||
key_bind("next_window", "Next window", "^N", NULL, (SIGNAL_FUNC) key_next_window);
|
||||
key_bind("right_window", "Window in right", "meta-right", NULL, (SIGNAL_FUNC) key_right_window);
|
||||
key_bind("upper_window", "Upper window", "meta-up", NULL, (SIGNAL_FUNC) key_upper_window);
|
||||
key_bind("lower_window", "Lower window", "meta-down", NULL, (SIGNAL_FUNC) key_lower_window);
|
||||
key_bind("left_window", "Window in left", "meta-left", NULL, (SIGNAL_FUNC) key_left_window);
|
||||
key_bind("right_window", "Window in right", "meta-right", NULL, (SIGNAL_FUNC) key_right_window);
|
||||
key_bind("active_window", "Go to next window with the highest activity", "meta-a", NULL, (SIGNAL_FUNC) key_active_window);
|
||||
key_bind("next_window_item", "Next channel/query", "^X", NULL, (SIGNAL_FUNC) key_next_window_item);
|
||||
key_bind("previous_window_item", "Previous channel/query", NULL, NULL, (SIGNAL_FUNC) key_previous_window_item);
|
||||
@ -737,13 +737,17 @@ void gui_readline_deinit(void)
|
||||
key_unbind("yank_from_cutbuffer", (SIGNAL_FUNC) key_yank_from_cutbuffer);
|
||||
key_unbind("transpose_characters", (SIGNAL_FUNC) key_transpose_characters);
|
||||
|
||||
key_unbind("send_line", (SIGNAL_FUNC) key_send_line);
|
||||
key_unbind("word_completion", (SIGNAL_FUNC) key_word_completion);
|
||||
key_unbind("erase_completion", (SIGNAL_FUNC) key_erase_completion);
|
||||
key_unbind("check_replaces", (SIGNAL_FUNC) key_check_replaces);
|
||||
|
||||
key_unbind("previous_window", (SIGNAL_FUNC) key_previous_window);
|
||||
key_unbind("next_window", (SIGNAL_FUNC) key_next_window);
|
||||
key_unbind("upper_window", (SIGNAL_FUNC) key_upper_window);
|
||||
key_unbind("lower_window", (SIGNAL_FUNC) key_lower_window);
|
||||
key_unbind("left_window", (SIGNAL_FUNC) key_left_window);
|
||||
key_unbind("right_window", (SIGNAL_FUNC) key_right_window);
|
||||
key_unbind("active_window", (SIGNAL_FUNC) key_active_window);
|
||||
key_unbind("next_window_item", (SIGNAL_FUNC) key_next_window_item);
|
||||
key_unbind("previous_window_item", (SIGNAL_FUNC) key_previous_window_item);
|
||||
|
@ -275,6 +275,6 @@ void textbuffer_reformat_deinit(void)
|
||||
g_string_free(format, TRUE);
|
||||
|
||||
signal_remove("print format", (SIGNAL_FUNC) sig_print_format);
|
||||
signal_remove("print text finished", (SIGNAL_FUNC) sig_gui_printtext_finished);
|
||||
signal_remove("gui print text finished", (SIGNAL_FUNC) sig_gui_printtext_finished);
|
||||
signal_remove("setup changed", (SIGNAL_FUNC) read_settings);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user