Implement initial close function

This commit is contained in:
shermp
2019-06-09 15:04:12 +12:00
parent 51f155d73e
commit 0448009a2b
2 changed files with 5 additions and 0 deletions

View File

@@ -111,4 +111,8 @@ cleanup_vhdm:
vhdm = NULL;
end:
return vhdm;
}
void mvhd_close(MVHDMeta* vhdm) {
fclose(vhdm->f);
}

View File

@@ -9,5 +9,6 @@ int main(int argc, char* argv[]) {
char* path = argv[1];
int err;
MVHDMeta* vhdm = mvhd_open(path, &err);
mvhd_close(vhdm);
return 0;
}