Browse Source

* src/source/files.c : list_destroy() -> stop()

master
Alex 'AdUser' Z 8 years ago
parent
commit
b424b7fdfe
  1. 14
      src/sources/files.c

14
src/sources/files.c

@ -132,13 +132,15 @@ list_from_glob(const char *pattern) {
return files;
}
static void
list_destroy(f2b_file_t *list) {
bool
stop(cfg_t *cfg) {
f2b_file_t *next = NULL;
for (; list != NULL; list = next) {
next = list->next;
file_close(list);
free(list);
for (; cfg->files != NULL; cfg->files = next) {
next = cfg->files->next;
file_close(cfg->files);
free(cfg->files);
}
return true;
}

Loading…
Cancel
Save