diff options
| author | Louis Burda <quent.burda@gmail.com> | 2021-12-12 23:06:54 +0100 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2021-12-20 15:31:28 +0100 |
| commit | 1bd07952245e3fc8ed95af0c1eff45938098b40b (patch) | |
| tree | 92f96c57337f71b7ec46125806800ba91e3acac2 /history.c | |
| parent | 9fe644f0d99375ffd3011d8828f7dbd0fb103af0 (diff) | |
| download | tmus-1bd07952245e3fc8ed95af0c1eff45938098b40b.tar.gz tmus-1bd07952245e3fc8ed95af0c1eff45938098b40b.zip | |
Added playback via libmpdclient
Diffstat (limited to 'history.c')
| -rw-r--r-- | history.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -39,12 +39,15 @@ history_free(struct history *history) struct link *iter, *next; struct inputln *ln; - for (iter = &history->list; iter; iter = next) { + for (iter = history->list.next; iter; iter = next) { next = iter->next; ln = UPCAST(iter, struct inputln); free(ln); } - free(history->cmd); + history->list = LIST_HEAD; + free(history->query); + history->query = NULL; + history->cmd = NULL; } struct inputln * |
