diff options
author | sabetts <sabetts> | 2003-05-27 18:46:33 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2003-05-27 18:46:33 +0000 |
commit | c590e039dac7c9edd4074d8e52f7928e789b5078 (patch) | |
tree | 3cf0673d90d641f5d386ea647c1b8078813a9214 /src/group.c | |
parent | 416fd6f8a57877da6700bbb95008dacb84caf4e8 (diff) | |
download | ratpoison-c590e039dac7c9edd4074d8e52f7928e789b5078.zip |
* src/completions.c (completions_next_completion): check
c->last_match as a match to partial on a virgin completion.
* src/group.c (free_groups): new function
* src/group.h (free_groups): new prototype
* src/main.c (clean_up): call free_groups
* src/actions.c (cmd_fdump): free the string returned by frame_dump.
* src/completions.c (completions_update): free new_list.
Diffstat (limited to 'src/group.c')
-rw-r--r-- | src/group.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/group.c b/src/group.c index b69212e..80ab89e 100644 --- a/src/group.c +++ b/src/group.c @@ -24,7 +24,8 @@ static struct numset *group_numset; -void init_groups() +void +init_groups() { rp_group *g; @@ -38,6 +39,18 @@ void init_groups() list_add_tail (&g->node, &rp_groups); } +void +free_groups() +{ + rp_group *cur; + struct list_head *iter, *tmp; + + list_for_each_safe_entry (cur, iter, tmp, &rp_groups, node) + { + group_free (cur); + } +} + rp_group * group_new (int number, char *name) { |