1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

typing: remove hashtables when typing is turned off

This commit is contained in:
Sébastien Helleu
2021-07-04 11:48:45 +02:00
parent ed24930547
commit 1746e832ec
2 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ typing_config_reload (const void *pointer, void *data,
}
/*
* Callback for changes on option "typing.look.enabled".
* Callback for changes on options "typing.look.enabled_*".
*/
void
+10
View File
@@ -518,6 +518,11 @@ typing_setup_hooks ()
typing_modifier_input_text_for_buffer = NULL;
weechat_unhook (typing_timer);
typing_timer = NULL;
if (typing_status_self)
{
weechat_hashtable_free (typing_status_self);
typing_status_self = NULL;
}
}
}
@@ -551,6 +556,11 @@ typing_setup_hooks ()
typing_signal_typing_set_nick = NULL;
weechat_unhook (typing_signal_typing_reset_buffer);
typing_signal_typing_reset_buffer = NULL;
if (typing_status_nicks)
{
weechat_hashtable_free (typing_status_nicks);
typing_status_nicks = NULL;
}
}
}
}