diff options
author | nirav <nirav@teisuu.com> | 2018-09-07 21:56:19 +0530 |
---|---|---|
committer | Dandelion <nirav@teisuu.com> | 2018-09-07 21:56:19 +0530 |
commit | 7722e6d67a8e6e6a1cb73115ee3abe4380e29e2a (patch) | |
tree | c6ec058a30d102de7824b34842fbb7c90bdba2c2 /file.c | |
parent | 02f7a54e67260ee7995c6cd9bf40ae784b60203d (diff) | |
download | im-7722e6d67a8e6e6a1cb73115ee3abe4380e29e2a.tar.gz im-7722e6d67a8e6e6a1cb73115ee3abe4380e29e2a.zip |
Added more key bindings, fixed file loading error
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); +} |