autofree: free strings
parent
486b3d2f92
commit
f629069572
|
@ -193,6 +193,9 @@ fn main() {
|
||||||
v.cgen.lines.free()
|
v.cgen.lines.free()
|
||||||
free(v.cgen)
|
free(v.cgen)
|
||||||
free(v.table)
|
free(v.table)
|
||||||
|
//for p in parsers {
|
||||||
|
|
||||||
|
//}
|
||||||
println('done!')
|
println('done!')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1078,7 +1078,7 @@ fn (p mut Parser) close_scope() {
|
||||||
free_fn = 'v_array_free'
|
free_fn = 'v_array_free'
|
||||||
} else if v.typ == 'string' {
|
} else if v.typ == 'string' {
|
||||||
free_fn = 'v_string_free'
|
free_fn = 'v_string_free'
|
||||||
continue
|
//continue
|
||||||
} else if v.ptr || v.typ.ends_with('*') {
|
} else if v.ptr || v.typ.ends_with('*') {
|
||||||
free_fn = 'v_ptr_free'
|
free_fn = 'v_ptr_free'
|
||||||
//continue
|
//continue
|
||||||
|
|
Loading…
Reference in New Issue