diff --git a/src/file.c b/src/file.c index 1aa0d49..02c478c 100644 --- a/src/file.c +++ b/src/file.c @@ -123,7 +123,7 @@ void file_write(const char *path, const StringArray *lines) { fclose(file_pointer); } -void file_free(const File *file) { +void file_free(File *file) { if (!file->error) { free(file->content); } diff --git a/src/file.h b/src/file.h index 1d333ff..c683e68 100644 --- a/src/file.h +++ b/src/file.h @@ -13,6 +13,6 @@ void file_write(const char *path, const StringArray *lines); void file_dump(const char *path, const char *content); -void file_free(const File *file); +void file_free(File *file); #endif /* FILE_H */ diff --git a/src/project.c b/src/project.c index d46e2f9..06e8cba 100644 --- a/src/project.c +++ b/src/project.c @@ -134,7 +134,7 @@ void project_reload(Project *project, void (*reload_callback)(unsigned int)) { } } -void project_free(const Project *project) { +void project_free(Project *project) { for (unsigned int i = 0; i < project->frag_count; i++) { file_free(&project->fragment_shaders[i][0]); } diff --git a/src/project.h b/src/project.h index 1170fef..38ac450 100644 --- a/src/project.h +++ b/src/project.h @@ -8,6 +8,6 @@ void project_init(Project *project, const char *project_path, void project_reload(Project *project, void (*reload_callback)(unsigned int)); -void project_free(const Project *project); +void project_free(Project *project); #endif /* PROJECT_H */