diff options
Diffstat (limited to 'ttt.jai')
| -rw-r--r-- | ttt.jai | 19 |
1 files changed, 10 insertions, 9 deletions
@@ -1213,15 +1213,16 @@ void *mem_alloc(size_t mem_size, const char *error_tag) { */ free_memory :: () { print(">> FREE <<\n"); - /* TODO - reset_database(&database); - reset_database(&archive); - free(string_buffer); string_buffer = NULL; - free(app_directory); app_directory = NULL; - free(db_file_path); db_file_path = NULL; - free(ar_file_path); ar_file_path = NULL; - */ + // TODO + //reset_database(&database); + //reset_database(&archive); + + //free(string_buffer); string_buffer = NULL; + free(app_directory); + free(db_file_path); + free(ar_file_path); + //reset_temporary_storage(); } /* @@ -1304,7 +1305,7 @@ main :: () { home_dir = "."; } - home_path, success_path := get_absolute_path(home_dir); // Returns temporary memory. + home_path, success_path := get_absolute_path(home_dir); // Returns temporary memory. TODO LEAK if success_path == false { print_error("Failed to find home directory '%'.", home_dir); return; |
