Add lsmash_destroy_children() to deallocate child boxes.