1
0
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:
Sebastien Helleu
2005-01-31 23:33:59 +00:00
parent 74b83e5294
commit 8921e45815
26 changed files with 314 additions and 44 deletions
+24
View File
@@ -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
*/