aboutsummaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/file.c b/file.c
index 528de4b..1477f39 100644
--- a/file.c
+++ b/file.c
@@ -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);
+}