mirror of
https://github.com/weechat/weechat.git
synced 2026-07-01 15:26:37 +02:00
Fixed many memory leaks
This commit is contained in:
@@ -145,6 +145,19 @@ command_index_build ()
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* command_index_free: remove all commands in index
|
||||
*/
|
||||
|
||||
void
|
||||
command_index_free ()
|
||||
{
|
||||
while (index_commands)
|
||||
{
|
||||
weelist_remove (&index_commands, &last_index_command, index_commands);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* alias_search: search an alias
|
||||
*/
|
||||
@@ -306,6 +319,17 @@ alias_free (t_weechat_alias *alias)
|
||||
weechat_alias = new_weechat_alias;
|
||||
}
|
||||
|
||||
/*
|
||||
* alias_free_all: free all alias
|
||||
*/
|
||||
|
||||
void
|
||||
alias_free_all ()
|
||||
{
|
||||
while (weechat_alias)
|
||||
alias_free (weechat_alias);
|
||||
}
|
||||
|
||||
/*
|
||||
* explode_string: explode a string according to separators
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user