diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2008-05-23 09:59:59 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2008-05-23 09:59:59 +0000 |
commit | 3236daa97a342903ba988d9395e7fe8222d41e12 (patch) | |
tree | 727813c40106f387ce572b5938ff8d2a817ce27c /src/fe-common/core/keyboard.c | |
parent | 54f5beb8f5b0c98db5363f006e9d46753f30a704 (diff) | |
download | irssi-3236daa97a342903ba988d9395e7fe8222d41e12.zip |
Fix leaks.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4845 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/core/keyboard.c')
-rw-r--r-- | src/fe-common/core/keyboard.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fe-common/core/keyboard.c b/src/fe-common/core/keyboard.c index cebb9af0..7c3ad5d5 100644 --- a/src/fe-common/core/keyboard.c +++ b/src/fe-common/core/keyboard.c @@ -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); |