mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 04:43:34 +02:00
Fix leaks.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4845 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
54f5beb8f5
commit
3236daa97a
4 changed files with 6 additions and 5 deletions
|
|
@ -228,6 +228,7 @@ static int expand_combo(const char *start, const char *end, GSList **out)
|
|||
if (list->next == NULL) {
|
||||
/* only one way to generate the combo, good */
|
||||
rec = list->data;
|
||||
g_slist_free(list);
|
||||
return expand_key(rec->key, out);
|
||||
}
|
||||
|
||||
|
|
@ -252,6 +253,7 @@ static int expand_combo(const char *start, const char *end, GSList **out)
|
|||
}
|
||||
|
||||
rec = list->data;
|
||||
g_slist_free(list);
|
||||
if (!expand_key(rec->key, out)) {
|
||||
/* illegal key combo, remove from list */
|
||||
expand_out_free(*out);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue