diff options
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -77,3 +77,11 @@ char *get_last_file() curr_file_index = file_list_count - 1; return file_list[curr_file_index]; } + +void clean() +{ + for (int i = 0; i < file_list_count; ++i) { + g_free(file_list[i]); + } + g_free(file_list); +} |