mirror of
https://github.com/vlang/v.git
synced 2025-09-15 07:22:27 +03:00
flag: add a .free() method
This commit is contained in:
parent
7f91b75cbc
commit
a593ff930f
1 changed files with 12 additions and 0 deletions
|
@ -38,6 +38,18 @@ pub mut:
|
|||
args_description string
|
||||
}
|
||||
|
||||
[unsafe]
|
||||
fn (mut f FlagParser) free() {
|
||||
unsafe {
|
||||
f.args.free()
|
||||
f.flags.free()
|
||||
f.application_name.free()
|
||||
f.application_version.free()
|
||||
f.application_description.free()
|
||||
f.args_description.free()
|
||||
}
|
||||
}
|
||||
|
||||
pub const (
|
||||
// used for formating usage message
|
||||
space = ' '
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue