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:
Emanuele Giaquinta 2008-05-23 09:59:59 +00:00 committed by exg
commit 3236daa97a
4 changed files with 6 additions and 5 deletions

View file

@ -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);