Fixed obsolete lines, free joliet tree, added public functions
This commit is contained in:
@@ -191,6 +191,21 @@ joliet_tree_create(struct ecma119_write_target *t,
|
||||
return root;
|
||||
}
|
||||
|
||||
void
|
||||
joliet_tree_free(struct joliet_tree_node *root)
|
||||
{
|
||||
size_t i;
|
||||
|
||||
if (root->type == JOLIET_DIR) {
|
||||
for (i=0; i < root->info.dir.nchildren; i++) {
|
||||
joliet_tree_free(root->info.dir.children[i]);
|
||||
}
|
||||
free(root->info.dir.children);
|
||||
}
|
||||
free(root->name);
|
||||
free(root);
|
||||
}
|
||||
|
||||
/* ugh. this is mostly C&P */
|
||||
static void
|
||||
write_path_table(struct ecma119_write_target *t,
|
||||
|
Reference in New Issue
Block a user